コード例 #1
0
ファイル: Manager.php プロジェクト: netzmacht/workflow
 /**
  * {@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);
 }
コード例 #2
0
ファイル: Manager.php プロジェクト: netzmacht/contao-workflow
 /**
  * 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;
 }