Пример #1
0
 /**
  * @param array $options with at least 'name' and 'state_machine_definition' keys set
  * @param ServiceLocatorInterface $service_locator
  */
 public function __construct(array $options, ServiceLocatorInterface $service_locator)
 {
     parent::__construct($options);
     $this->service_locator = $service_locator;
 }
Пример #2
0
 public function __construct(DiContainer $di_container, array $options = [])
 {
     parent::__construct($options);
     $this->di_container = $di_container;
 }