From db711af4adcbad163b64a1b839eff6ad36303fc2 Mon Sep 17 00:00:00 2001 From: Kevin Jilissen Date: Tue, 26 Nov 2024 07:50:18 +0100 Subject: [PATCH] Change URL parameter name to fix autowiring The autowiring works if the URL parameter and function parameter have the same name `team`. --- webapp/src/Controller/Jury/AnalysisController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/Controller/Jury/AnalysisController.php b/webapp/src/Controller/Jury/AnalysisController.php index b0ca2924d2..26fa10b436 100644 --- a/webapp/src/Controller/Jury/AnalysisController.php +++ b/webapp/src/Controller/Jury/AnalysisController.php @@ -82,7 +82,7 @@ public function indexAction( ]); } - #[Route(path: '/team/{teamid}', name: 'analysis_team')] + #[Route(path: '/team/{team}', name: 'analysis_team')] public function teamAction(Team $team): Response { $contest = $this->dj->getCurrentContest();