phpvms/app/Console/Kernel.php

43 lines
924 B
PHP
Raw Normal View History

2017-06-09 02:28:26 +08:00
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
2017-07-14 02:45:59 +08:00
Commands\CreateDatabase::class,
2017-12-17 12:19:17 +08:00
Commands\Install::class,
2017-06-09 02:28:26 +08:00
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
// $schedule->command('inspire')
// ->hourly();
}
/**
* Register the Closure based commands for the application.
*
* @return void
*/
protected function commands()
{
require app_path('Routes/console.php');
2017-12-03 00:26:25 +08:00
$this->load(__DIR__ . '/Commands');
2017-06-09 02:28:26 +08:00
}
}