src/CLI/BindCommand.php
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $exchange = $input->getArgument('exchange');
        $queue = $input->getArgument('queue');
        $routingKey = ($input->getOption('routingKey') !== null) ? $input->getOption('routingKey') : '';

        $this->driver->bindQueue(
            $input->getArgument('exchange'),
            $input->getArgument('queue'),
            $routingKey
        );

        $output->writeln(sprintf(
            '<info>Bind exchange <comment>%s</comment> to queue <comment>%s</comment> [<comment>%s</comment>]</info>',
            $exchange,
            $queue,
            $routingKey
        ));
    }
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $exchange = $input->getArgument('exchange');
        $queue = $input->getArgument('queue');
        $routingKey = ($input->getOption('routingKey') !== null) ? $input->getOption('routingKey') : '';

        $this->driver->bindQueue(
            $input->getArgument('exchange'),
            $input->getArgument('queue'),
            $routingKey
        );

        $output->writeln(sprintf(
            '<info>Bind exchange <comment>%s</comment> to queue <comment>%s</comment> [<comment>%s</comment>]</info>',
            $exchange,
            $queue,
            $routingKey
        ));
    }
@param InputInterface  $input
@param OutputInterface $output

@return int|null|void

@throws InvalidArgumentException