コード例 #1
0
ファイル: EventHandler.php プロジェクト: piece/piece-flow
 /**
  * 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));
 }
コード例 #2
0
ファイル: PageFlowInstance.php プロジェクト: piece/piece-flow
 /**
  * {@inheritDoc}
  *
  * @since Method available since Release 2.0.0
  */
 public function getLastTransitionEvent()
 {
     return $this->pageFlow->getLastTransitionEvent();
 }
コード例 #3
0
 /**
  * @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()))));
 }