Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function __construct(TransitionHandlerFactory $handlerFactory, StateRepository $stateRepository, $workflows = array())
 {
     parent::__construct($handlerFactory, $stateRepository, $workflows);
     $message = '"Netzmacht\\Workflow\\Manager"" is deprecated and will be removed in v1.0.0 stable.';
     $message .= ' Use "Netzmacht\\Workflow\\Manager\\WorkflowManager" instead.';
     trigger_error($message, E_USER_DEPRECATED);
 }
Exemplo n.º 2
0
 /**
  * Construct.
  *
  * @param TransitionHandlerFactory $handlerFactory  The transition handler factory.
  * @param StateRepository          $stateRepository The state repository.
  * @param EventDispatcher          $eventDispatcher The event dispatcher.
  * @param array                    $workflows       A optional set of workflows.
  */
 public function __construct(TransitionHandlerFactory $handlerFactory, StateRepository $stateRepository, EventDispatcher $eventDispatcher, $workflows = array())
 {
     parent::__construct($handlerFactory, $stateRepository, $workflows);
     $this->eventDispatcher = $eventDispatcher;
 }