protected function execute(InputInterface $input, OutputInterface $output) { $boot = new Bootstrap(); $helper = new BootstrapHelper($boot->getConnection($this->getContainer()->get('kernel'))); if ($input->getArgument('create')) { $helper->createSchema(); } $helper->load(); }
private function createBundles() { $kernel = $this->container->get('kernel'); $boot = new CoreBundleBootstrap(); $helper = new CoreBundleBootstrapHelper($boot->getConnection($kernel)); $helper->createSchema(); $helper->load(); $bundles = array(); // this neatly autoloads $boot->getPersistedBundles($kernel, $bundles); return true; }