/** * Invokes the action with the event context. * * @param \Stagehand\FSM\Event\EventInterface $event * @param mixed $payload * @param \Stagehand\FSM\StateMachine\StateMachine $fsm * @return string */ public function invokeAction(EventInterface $event, $payload, StateMachine $fsm) { return $this->pageFlow->getActionInvoker()->invoke($this->actionID, new EventContext($event, $payload, $this->pageFlow)); }
/** * {@inheritDoc} * * @since Method available since Release 2.0.0 */ public function getLastTransitionEvent() { return $this->pageFlow->getLastTransitionEvent(); }
/** * @return array * @since Method available since Release 2.0.0 */ protected function readDefinition() { $processor = new Processor(); return $processor->processConfiguration(new Definition17Configuration(), array('definition17' => Yaml::parse($this->pageFlowRegistries->getFileName($this->pageFlow->getID())))); }