blue-twilight/app/Console/Kernel.php

48 lines
1.1 KiB
PHP
Raw Permalink Normal View History

<?php
namespace App\Console;
use App\Console\Commands\ProcessUploadCommand;
use App\Console\Commands\RegenerateThumbnailsCommand;
use App\Upload;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
}
/**
* Register the Closure based commands for the application.
*
* @return void
*/
protected function commands()
{
require base_path('routes/console.php');
// We can only auto-load commands for Laravel 5.5.0 or above
if (version_compare(Application::VERSION, '5.5.0') >= 0)
{
$this->load(__DIR__.'/Commands');
}
}
}