Exemple #1
0
 public function bootstrap()
 {
     parent::bootstrap();
     $em = \App::make(EntityManager::class);
     $this->getArtisan()->getHelperSet()->set(new \Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper($em->getConnection()), 'db');
     $this->getArtisan()->getHelperSet()->set(new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($em), 'em');
 }
Exemple #2
0
 /**
  * Bootstrap the application for artisan commands.
  */
 public function bootstrap()
 {
     parent::bootstrap();
     // Only register the reset command on the local environment
     if ($this->app->environment() === 'local') {
         $this->commands[] = ResetApp::class;
     }
 }
 /**
  * Bootstrap the application for artisan commands.
  *
  * @return void
  */
 public function bootstrap()
 {
     $args = func_get_args();
     $withXE = array_shift($args);
     if (!$this->isInstalled() && $withXE !== true) {
         $this->resetForFramework();
     } else {
         $this->setCommandAfterInstall();
     }
     parent::bootstrap();
 }
 public function bootstrap()
 {
     parent::bootstrap();
     $this->app->singleton('command.key.generate', KeyGenerateCommand::class);
 }
 /**
  * Bootstrap the application for Console.
  */
 public function bootstrap()
 {
     parent::bootstrap();
     $registrar = new GeneratorCommandRegistrar($this->app);
     $this->commands = array_merge($this->commands, $registrar->register(), $this->app[AddonEnvironment::class]->addonConsoleCommands());
 }
Exemple #6
0
 public function bootstrap()
 {
     parent::bootstrap();
 }