XF_Index/app/Console/Kernel.php

38 lines
846 B
PHP
Raw Normal View History

2023-06-10 14:21:40 +08:00
<?php
/*
* Copyright © 2016 - 2023 筱锋xiao_lfeng. All Rights Reserved.
* 开发开源遵循 MIT 许可,若需商用请联系开发者
* https://www.x-lf.com/
*/
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* Define the application's command schedule.
*
2023-06-11 14:20:56 +08:00
* @param \Illuminate\Console\Scheduling\Schedule $schedule
2023-06-10 14:21:40 +08:00
* @return void
*/
protected function schedule(Schedule $schedule)
{
// $schedule->command('inspire')->hourly();
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
2023-06-11 14:20:56 +08:00
$this->load(__DIR__.'/Commands');
2023-06-10 14:21:40 +08:00
require base_path('routes/console.php');
}
}