public function __construct(Configuration $conf) { parent::__construct('server:ensure-configuration'); $this->conf = $conf; $this->setDescription('Ensure that queues and echanges are declared and bounds')->addOption('dry-run', 'd', InputOption::VALUE_NONE, 'Dry run the command'); return $this; }
public function __construct(Configuration $conf) { parent::__construct('server:run'); $this->conf = $conf; $this->setDescription('Run gloubster server'); $this->addOption('test', 't', InputOption::VALUE_NONE, 'start and stop the server'); return $this; }
/** * Adds a command object. * * If a command with the same name already exists, it will be overridden. * * @param AbstractCommand $command A Command object */ public function command(AbstractCommand $command) { $command->setContainer($this); $this['console']->add($command); }