1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- /*
- * This file is part of the Jiannei/lumen-api-starter.
- *
- * (c) Jiannei <longjian.huang@foxmail.com>
- *
- * This source file is subject to the MIT license that is bundled
- * with this source code in the file LICENSE.
- */
- namespace App\Console;
- use App\Console\Commands\Base\InitSettingCommand;
- use App\Console\Commands\Base\RemoveModuleCommand;
- use App\Console\Commands\Base\RemoveModuleControllerCommand;
- use App\Console\Commands\Dwbs\MakeDataCommand;
- use App\Console\Commands\Dwbs\MakeStatisticalResourceCommand;
- use App\Console\Commands\Dwbs\StatisticalUserCommand;
- use App\Console\Commands\InitPermissionsCommand;
- use App\Console\Commands\LoadlogsCommand;
- use App\Console\Commands\TestCommand;
- use Illuminate\Console\Scheduling\Schedule;
- use Laravel\Lumen\Console\Kernel as ConsoleKernel;
- class Kernel extends ConsoleKernel
- {
- /**§
- * The Artisan commands provided by your application.
- *
- * @var array
- */
- protected $commands = [
- TestCommand::class,
- InitPermissionsCommand::class,
- // InitSettingCommand::class,
- // RemoveModuleCommand::class,
- // RemoveModuleControllerCommand::class,
- LoadlogsCommand::class,
- MakeDataCommand::class,
- MakeStatisticalResourceCommand::class,
- StatisticalUserCommand::class
- ];
- /**
- * Define the application's command schedule.
- *
- * @param \Illuminate\Console\Scheduling\Schedule $schedule
- */
- protected function schedule(Schedule $schedule)
- {
- $schedule->command(StatisticalUserCommand::class)->dailyAt("00:10");
- //todo:生成学霸和排行榜图片(暂时关闭)
- // $schedule->command(MakeStatisticalResourceCommand::class)->dailyAt("02:10");
- }
- }
|