fix argument order

This commit is contained in:
Julien Fastré 2021-05-06 12:55:12 +02:00
parent 90fe484d81
commit f56dc65021

View File

@ -38,7 +38,7 @@ class AccompanyingCourseApiController extends ApiController
// TODO add acl // TODO add acl
// //
$this->onPostCheckACL('participation', $request, $accompanyingPeriod, $_format); $this->onPostCheckACL('participation', $request, $_format, $accompanyingPeriod);
switch ($request->getMethod()) { switch ($request->getMethod()) {
case Request::METHOD_POST: case Request::METHOD_POST:
@ -64,7 +64,7 @@ class AccompanyingCourseApiController extends ApiController
return $this->json($participation); 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( $this->eventDispatcher->dispatch(
AccompanyingPeriodPrivacyEvent::ACCOMPANYING_PERIOD_PRIVACY_EVENT, AccompanyingPeriodPrivacyEvent::ACCOMPANYING_PERIOD_PRIVACY_EVENT,