apply rector rules: symfony **UP TO** 44

This commit is contained in:
2023-07-28 01:52:53 +02:00
parent b6a094aeee
commit c20f65eebb
88 changed files with 211 additions and 320 deletions

View File

@@ -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', [