Improve links

This commit is contained in:
2025-06-07 21:26:23 +02:00
parent 6a77df402d
commit ff6534fa81
5 changed files with 5 additions and 6 deletions

View File

@@ -27,7 +27,6 @@ return RectorConfig::configure()
phpunitCodeQuality: true, phpunitCodeQuality: true,
doctrineCodeQuality: true, doctrineCodeQuality: true,
symfonyCodeQuality: true, symfonyCodeQuality: true,
// naming: true
) )
->withAttributesSets(all: true) ->withAttributesSets(all: true)
->withComposerBased(twig: true, doctrine: true, phpunit: true, symfony: true) ->withComposerBased(twig: true, doctrine: true, phpunit: true, symfony: true)

View File

@@ -43,7 +43,7 @@ final class BackofficeController extends AbstractController
]); ]);
} }
#[Route('/backoffice/add', name: 'app_backoffice_season_add', priority: 10)] #[Route('/backoffice/season/add', name: 'app_backoffice_season_add', priority: 10)]
public function addSeason(Request $request, EntityManagerInterface $em): Response public function addSeason(Request $request, EntityManagerInterface $em): Response
{ {
$season = new Season(); $season = new Season();

View File

@@ -17,7 +17,7 @@ use Symfony\Component\Routing\Attribute\Route;
final class PrepareEliminationController extends AbstractController final class PrepareEliminationController extends AbstractController
{ {
#[Route( #[Route(
'/backoffice/elimination/{seasonCode}/{quiz}/prepare', '/backoffice/season/{seasonCode}/quiz/{quiz}/elimination/prepare',
name: 'app_prepare_elimination', name: 'app_prepare_elimination',
requirements: ['seasonCode' => self::SEASON_CODE_REGEX], requirements: ['seasonCode' => self::SEASON_CODE_REGEX],
)] )]

View File

@@ -97,7 +97,7 @@ class QuizController extends AbstractController
} }
#[Route( #[Route(
'/backoffice/quiz/{quiz}/modify_correction/{candidate}', '/backoffice/quiz/{quiz}/candidate/{candidate}/modify_correction',
name: 'app_backoffice_modify_correction', name: 'app_backoffice_modify_correction',
)] )]
#[IsGranted(SeasonVoter::EDIT, subject: 'quiz')] #[IsGranted(SeasonVoter::EDIT, subject: 'quiz')]

View File

@@ -43,7 +43,7 @@ class SeasonController extends AbstractController
} }
#[Route( #[Route(
'/backoffice/season/{seasonCode}/add_candidate', '/backoffice/season/{seasonCode}/add-candidate',
name: 'app_backoffice_add_candidates', name: 'app_backoffice_add_candidates',
requirements: ['seasonCode' => self::SEASON_CODE_REGEX], requirements: ['seasonCode' => self::SEASON_CODE_REGEX],
priority: 10, priority: 10,
@@ -69,7 +69,7 @@ class SeasonController extends AbstractController
} }
#[Route( #[Route(
'/backoffice/season/{seasonCode}/add', '/backoffice/season/{seasonCode}/add-quiz',
name: 'app_backoffice_quiz_add', name: 'app_backoffice_quiz_add',
requirements: ['seasonCode' => self::SEASON_CODE_REGEX], requirements: ['seasonCode' => self::SEASON_CODE_REGEX],
priority: 10, priority: 10,