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-12-30 00:23:42 +08:00
|
|
|
Commands\AcarsReplay::class,
|
2017-07-14 02:45:59 +08:00
|
|
|
Commands\CreateDatabase::class,
|
2017-12-30 00:23:42 +08:00
|
|
|
Commands\DevCommands::class,
|
2017-12-30 07:34:09 +08:00
|
|
|
Commands\ImportCommand::class,
|
2018-01-03 11:00:46 +08:00
|
|
|
Commands\Importer::class,
|
2017-12-17 12:19:17 +08:00
|
|
|
Commands\Install::class,
|
2017-12-30 00:23:42 +08:00
|
|
|
Commands\NavdataCommand::class,
|
2017-12-31 01:56:38 +08:00
|
|
|
Commands\TestApi::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()
|
|
|
|
{
|
2017-12-15 00:38:10 +08:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|