Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 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;
 }