public function canHandle($event) { $transitions = $this->getCurrentState()->getTransitionsTriggeredByEvent($event); foreach ($transitions as $transition) { if ($this->doCheckCanTransition($transition)) { return true; } } return false; }