protected function execute(InputInterface $input, OutputInterface $output) { /* @var $updater Updater */ $updater = $this->getContainer()->get('knp_bundles.updater'); $updater->setOutput($output); $updater->cleanupBundlesActivities($input->getOption('limit')); }