privacyEvent: remove element parameter

This commit is contained in:
Mat
2018-10-16 14:47:19 +02:00
parent 5f36a62379
commit 6324eceb1b
4 changed files with 19 additions and 24 deletions

View File

@@ -56,7 +56,7 @@ class AccompanyingPeriodController extends Controller
$person = $this->_getPerson($person_id);
$event = new PrivacyEvent($person, null, array(
$event = new PrivacyEvent($person, array(
'element_class' => AccompanyingPeriod::class,
'action' => 'list'
));

View File

@@ -71,7 +71,7 @@ class TimelinePersonController extends Controller
$paginator = $paginatorFactory->create($nbItems);
$event = new PrivacyEvent($person);
$event = new PrivacyEvent($person, array('action' => 'timeline'));
$this->eventDispatcher->dispatch(PrivacyEvent::PERSON_PRIVACY_EVENT, $event);
return $this->render('ChillPersonBundle:Timeline:index.html.twig', array