getDispatcher() public method

public getDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface
return Symfony\Component\EventDispatcher\EventDispatcherInterface
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);
 }
Beispiel #2
0
 /**
  * @{inheritDoc}
  */
 public function load(StateMachineInterface $stateMachine)
 {
     if (null === $this->callbackHandler) {
         $this->callbackHandler = new CallbackHandler($stateMachine->getDispatcher());
     }
     $stateMachine->setStateAccessor(new PropertyPathStateAccessor($this->config['property_path']));
     $stateMachine->setGraph($this->config['graph']);
     $this->loadStates($stateMachine);
     $this->loadTransitions($stateMachine);
     $this->loadCallbacks($stateMachine);
 }