Finite\StateMachine\StateMachineInterface::getDispatcher PHP Method

getDispatcher() public method

public getDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface
return Symfony\Component\EventDispatcher\EventDispatcherInterface
    public function getDispatcher();

Usage Example

Beispiel #1
0
 /**
  * @{inheritDoc}
  */
 public function load(StateMachineInterface $stateMachine)
 {
     if (null === $this->callbackHandler) {
         $this->callbackHandler = new CallbackHandler($stateMachine->getDispatcher());
     }
     $this->loadStates($stateMachine);
     $this->loadTransitions($stateMachine);
     $this->loadCallbacks($stateMachine);
 }
All Usage Examples Of Finite\StateMachine\StateMachineInterface::getDispatcher