From f56dc650213904cab6c204d7b4607143d93e313e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 6 May 2021 12:55:12 +0200 Subject: [PATCH] fix argument order --- .../Controller/AccompanyingCourseApiController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseApiController.php b/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseApiController.php index 2716d1c1a..bbf2f399a 100644 --- a/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseApiController.php +++ b/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseApiController.php @@ -38,7 +38,7 @@ class AccompanyingCourseApiController extends ApiController // TODO add acl // - $this->onPostCheckACL('participation', $request, $accompanyingPeriod, $_format); + $this->onPostCheckACL('participation', $request, $_format, $accompanyingPeriod); switch ($request->getMethod()) { case Request::METHOD_POST: @@ -64,7 +64,7 @@ class AccompanyingCourseApiController extends ApiController return $this->json($participation); } - protected function onPostCheckACL(string $action, Request $request, $entity, $_format): ?Response + protected function onPostCheckACL(string $action, Request $request, string $_format, $entity): ?Response { $this->eventDispatcher->dispatch( AccompanyingPeriodPrivacyEvent::ACCOMPANYING_PERIOD_PRIVACY_EVENT,