public function __construct(LoggerInterface
$logger) { $this->logger =
$logger;
} /**
* @return void
*/
public function onLeave(Event
$event) { foreach ($event->
getTransition()->
getFroms() as $place) { $this->logger->
info(sprintf('Leaving "%s" for subject of class "%s" in workflow "%s".',
$place,
$event->
getSubject()::
class,
$event->
getWorkflowName()));
} } /**
* @return void
*/
public function onTransition(Event
$event) { $this->logger->
info(sprintf('Transition "%s" for subject of class "%s" in workflow "%s".',
$event->
getTransition()->
getName(),
$event->
getSubject()::
class,
$event->
getWorkflowName()));
}