2016-09-01 16:23:39 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Console;
|
|
|
|
|
2016-09-02 21:27:50 +01:00
|
|
|
use App\Console\Commands\ProcessUploadCommand;
|
2016-09-07 21:44:28 +01:00
|
|
|
use App\Console\Commands\RegenerateThumbnailsCommand;
|
2016-09-02 21:27:50 +01:00
|
|
|
use App\Upload;
|
2016-09-01 16:23:39 +01:00
|
|
|
use Illuminate\Console\Scheduling\Schedule;
|
2019-07-28 12:51:12 +01:00
|
|
|
use Illuminate\Foundation\Application;
|
2016-09-01 16:23:39 +01:00
|
|
|
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');
|
2019-07-28 12:51:12 +01:00
|
|
|
|
|
|
|
// 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');
|
|
|
|
}
|
2016-09-01 16:23:39 +01:00
|
|
|
}
|
|
|
|
}
|