예제 #1
0
 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();
 }
예제 #2
0
 public function __construct(CommandBusInterface $command_bus, array $state)
 {
     parent::__construct($state);
     $this->command_bus = $command_bus;
 }