public getDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface | ||
return | Symfony\Component\EventDispatcher\EventDispatcherInterface |
/** * @{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); }
/** * @{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); }