public function __construct($name, $exchange, JobServiceInterface $job_service, CommandBusInterface $command_bus, $queue_name = null) { parent::__construct($name); $this->exchange = $exchange; $this->job_service = $job_service; $this->command_bus = $command_bus; $this->queue_name = $queue_name; }
public function __construct($name, CommandBusInterface $command_bus) { parent::__construct($name); $this->command_bus = $command_bus; }