|
@@ -42,7 +42,7 @@ class EventSubscriber implements EventSubscriberInterface
|
|
|
$actions = $this->getActions($event, 'leave', $place);
|
|
|
|
|
|
foreach($actions as $k => $action) {
|
|
|
- $params = array('object'=>$event->getSubject());
|
|
|
+ $params = array('entity'=>$event->getSubject());
|
|
|
$this->completeAction($action, $params);
|
|
|
|
|
|
}
|
|
@@ -58,7 +58,7 @@ class EventSubscriber implements EventSubscriberInterface
|
|
|
$actions = $this->getActions($event, 'transition', $transitionName);
|
|
|
|
|
|
foreach($actions as $k => $action) {
|
|
|
- $params = array('object'=>$event->getSubject());
|
|
|
+ $params = array('entity'=>$event->getSubject());
|
|
|
$this->completeAction($action, $params);
|
|
|
|
|
|
}
|
|
@@ -71,7 +71,7 @@ class EventSubscriber implements EventSubscriberInterface
|
|
|
$actions = $this->getActions($event, 'enter', $place);
|
|
|
|
|
|
foreach($actions as $k => $action) {
|
|
|
- $params = array('object'=>$event->getSubject());
|
|
|
+ $params = array('entity'=>$event->getSubject());
|
|
|
$this->completeAction($action, $params);
|
|
|
|
|
|
}
|
|
@@ -116,7 +116,7 @@ class EventSubscriber implements EventSubscriberInterface
|
|
|
$twig = new \Twig_Environment(new \Twig_Loader_String());
|
|
|
$rendered = $twig->render($template, $params);
|
|
|
|
|
|
- $object = $params['object'];
|
|
|
+ $object = $params['entity'];
|
|
|
$class = get_class($object);
|
|
|
|
|
|
$logger->info("WORKFLOW-ACTION {$class}_id_{$object->getId()} | action_id_{$action->getId()} => Render: {$rendered}");
|