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,