/** * @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; }
public function __construct(DiContainer $di_container, array $options = []) { parent::__construct($options); $this->di_container = $di_container; }