Example #1
0
 /**
  * Bootstrap the application for HTTP requests.
  *
  * @return void
  */
 public function bootstrap()
 {
     if (!$this->app->hasBeenBootstrapped()) {
         $this->app->bootstrapWith($this->bootstrappers);
     }
     $this->app->loadDeferredProviders();
 }
 /**
  * Run an Artisan console command by name.
  *
  * @param  string  $command
  * @param  array  $parameters
  * @return int
  */
 public function call($command, array $parameters = array())
 {
     $this->bootstrap();
     // If we are calling a arbitary command from within the application, we will load
     // all of the available deferred providers which will make all of the commands
     // available to an application. Otherwise the command will not be available.
     $this->app->loadDeferredProviders();
     return $this->getArtisan()->call($command, $parameters);
 }
 /**
  * Bootstrap the application for HTTP requests.
  *
  * @return void
  */
 public function bootstrap()
 {
     if (!$this->app->hasBeenBootstrapped()) {
         $this->app->bootstrapWith($this->bootstrappers());
     }
     // If we are just calling another queue command, we will only load the queue
     // service provider. This saves a lot of file loading as we don't need to
     // load the providers with commands for every possible console command.
     $this->isCallingAQueueCommand() ? $this->app->loadDeferredProvider('queue') : $this->app->loadDeferredProviders();
 }
Example #4
0
 /**
  * Bootstrap the application for artisan commands.
  *
  * @return void
  */
 public function bootstrap()
 {
     if (!$this->app->hasBeenBootstrapped()) {
         $this->app->bootstrapWith($this->bootstrappers());
     }
     // If we are calling a arbitary command from within the application, we will load
     // all of the available deferred providers which will make all of the commands
     // available to an application. Otherwise the command will not be available.
     $this->app->loadDeferredProviders();
 }