mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
accompanying course: clean controller
This commit is contained in:
parent
048161e300
commit
6f8231f6f6
@ -76,16 +76,10 @@ class AccompanyingPeriodController extends AbstractController
|
||||
$this->eventDispatcher->dispatch(PrivacyEvent::PERSON_PRIVACY_EVENT, $event);
|
||||
|
||||
$accompanyingPeriods = $person->getAccompanyingPeriodsOrdered();
|
||||
dump($accompanyingPeriods);
|
||||
$participatingPersons = array();
|
||||
foreach ($accompanyingPeriods as $ap){
|
||||
$participatingPersons[] = ($ap->getOpenParticipationContainsPerson($person));
|
||||
}
|
||||
|
||||
return $this->render('ChillPersonBundle:AccompanyingPeriod:list.html.twig', [
|
||||
'accompanying_periods' => $accompanyingPeriods,
|
||||
'person' => $person,
|
||||
'participating_persons' => $participatingPersons
|
||||
'person' => $person
|
||||
]);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user