Knp\Bundle\KnpBundlesBundle\Command\KbAddBundleCommand::execute PHP Method

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $container = $this->getContainer();
        /* @var $updater Updater */
        $updater = $container->get('knp_bundles.updater');
        $updater->setOutput($output);
        if (!$input->getOption('no-publish')) {
            // manually set RabbitMQ producer
            $updater->setBundleUpdateProducer($container->get('old_sound_rabbit_mq.update_bundle_producer'));
        }
        $updater->addBundle($input->getArgument('bundleName'));
    }
KbAddBundleCommand