mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
apply rector rules: symfony **UP TO** 44
This commit is contained in:
@@ -205,7 +205,7 @@ class EventController extends AbstractController
|
||||
'element_class' => Participation::class,
|
||||
'action' => 'list',
|
||||
]);
|
||||
$this->eventDispatcher->dispatch(PrivacyEvent::PERSON_PRIVACY_EVENT, $privacyEvent);
|
||||
$this->eventDispatcher->dispatch($privacyEvent, PrivacyEvent::PERSON_PRIVACY_EVENT);
|
||||
|
||||
$addEventParticipationByPersonForm = $this->createAddEventParticipationByPersonForm($person);
|
||||
|
||||
@@ -252,7 +252,7 @@ class EventController extends AbstractController
|
||||
$this->addFlash('success', $this->get('translator')
|
||||
->trans('The event was created'));
|
||||
|
||||
return $this->redirect($this->generateUrl('chill_event__event_show', ['event_id' => $entity->getId()]));
|
||||
return $this->redirectToRoute('chill_event__event_show', ['event_id' => $entity->getId()]);
|
||||
}
|
||||
|
||||
return $this->render('ChillEventBundle:Event:new.html.twig', [
|
||||
@@ -363,7 +363,7 @@ class EventController extends AbstractController
|
||||
$this->addFlash('success', $this->get('translator')
|
||||
->trans('The event was updated'));
|
||||
|
||||
return $this->redirect($this->generateUrl('chill_event__event_edit', ['event_id' => $event_id]));
|
||||
return $this->redirectToRoute('chill_event__event_edit', ['event_id' => $event_id]);
|
||||
}
|
||||
|
||||
return $this->render('ChillEventBundle:Event:edit.html.twig', [
|
||||
|
Reference in New Issue
Block a user