Inheritance: implements Illuminate\Contracts\Console\Kernel
コード例 #1
0
ファイル: TinkerShell.php プロジェクト: tralves/lumen-tinker
 /**
  * Get artisan commands to pass through to PsySH.
  *
  * @return array
  */
 protected function getCommands()
 {
     $commands = [];
     foreach ($this->console->all() as $name => $command) {
         if (in_array($name, $this->commandWhiteList)) {
             $commands[] = $command;
         }
     }
     return $commands;
 }
コード例 #2
0
ファイル: Kernel.php プロジェクト: tvad911/wordpress-plus
 /**
  * Create a new console kernel instance.
  *
  * @param  \Laravel\Lumen\Application  $app
  * @return void
  */
 public function __construct(Application $app)
 {
     parent::__construct($app);
     if (!$this->includeDefaultCommands) {
         // setup facade
         $this->app->withFacades();
         // add artisan command 'serve' and 'schedule:run'
         $this->commands = array_merge($this->commands, [\Illuminate\Console\Scheduling\ScheduleRunCommand::class, \Laravel\Lumen\Console\Commands\ServeCommand::class]);
         // add artisan command 'cache:*'
         $this->app->make('cache');
         // add artisan command 'queue:*'
         //$this->app->make('queue');
         $this->app->configure('database');
     }
 }
コード例 #3
0
ファイル: Kernel.php プロジェクト: gibboncms/liana-core
 /**
  * @param  \GibbonCms\Liana\Liana $app
  */
 public function __construct(Liana $app, array $commands = [])
 {
     parent::__construct($app);
     $this->commands = array_merge($this->defaultCommands, $commands);
 }