Command/ConsumerCommand.php
public function execute(InputInterface $input, OutputInterface $output)
    {
        $this->consumer->consume($input->getArgument('queue'), [
            'max-runtime'     => $input->getOption('max-runtime'),
            'max-messages'    => $input->getOption('max-messages'),
            'stop-when-empty' => $input->getOption('stop-when-empty')
        ]);
    }
public function execute(InputInterface $input, OutputInterface $output)
    {
        $this->consumer->consume($input->getArgument('queue'), [
            'max-runtime'     => $input->getOption('max-runtime'),
            'max-messages'    => $input->getOption('max-messages'),
            'stop-when-empty' => $input->getOption('stop-when-empty')
        ]);
    }
{@inheritDoc}