Files
animethemes-server/app/Console/Kernel.php
T
2020-04-17 23:55:13 -05:00

48 lines
1.2 KiB
PHP

<?php
namespace App\Console;
use App\Console\Commands\VideoReconcileCommand;
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 = [
\App\Console\Commands\AnnouncementCreateCommand::class,
\App\Console\Commands\AnnouncementReadCommand::class,
\App\Console\Commands\AnnouncementUpdateCommand::class,
\App\Console\Commands\AnnouncementDeleteCommand::class,
\App\Console\Commands\AnnouncementListCommand::class,
\App\Console\Commands\VideoReconcileCommand::class,
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->command(VideoReconcileCommand::class)->hourly();
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}