public function __construct(array $state, EventBusInterface $event_bus, Closure $strategy_callback, SettingsInterface $settings = null) { parent::__construct($state); $this->event_bus = $event_bus; $this->strategy_callback = $strategy_callback; $this->settings = $settings ?: new Settings(); }
public function __construct(CommandBusInterface $command_bus, array $state) { parent::__construct($state); $this->command_bus = $command_bus; }