src/Commands/DaemonCommand.php
/**
     * Defines the behaviour of the command.
     *
     * @param InputInterface  $input  Defines console inputs
     * @param OutputInterface $output Defines console outputs
     */
Defines the behaviour of the command.
@param InputInterface  $input  Defines console inputs
@param OutputInterface $output Defines console outputs
Defines the behaviour of the command . @param InputInterface $input Defines console inputs @param OutputInterface $output Defines console outputs
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $queue = $input->getArgument(self::QUEUE);
        try {
            $this->queues[$queue]->listen();
        } catch (\Exception $exception) {
            $output->writeln($exception->getMessage());
        }
    }
protected function execute ( InputInterface $ input , OutputInterface $ output ) { $ queue = $ input -> getArgument ( self :: QUEUE ) ; try { $ this -> queues [ $ queue ] -> listen ( ) ; } catch ( \ Exception $ exception ) { $ output -> writeln ( $ exception -> getMessage ( ) ) ; } }
Defines the behaviour of the command.
Defines the behaviour of the command .