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)
{
/* @var $updater Updater */
$updater = $this->getContainer()->get('knp_bundles.updater');
$updater->setOutput($output);
$bundles = $updater->searchNewBundles();
$updater->createMissingBundles($bundles);
$em = $this->getContainer()->get('knp_bundles.entity_manager');
$em->flush();
}