Kernel.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /*
  3. * This file is part of the Jiannei/lumen-api-starter.
  4. *
  5. * (c) Jiannei <longjian.huang@foxmail.com>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. namespace App\Console;
  11. use App\Console\Commands\Base\InitSettingCommand;
  12. use App\Console\Commands\Base\RemoveModuleCommand;
  13. use App\Console\Commands\BikeManage\CheckBikeViolationCommand;
  14. use App\Console\Commands\BikeManage\MqttCommand;
  15. use App\Console\Commands\Check\InitCheckCommand;
  16. use App\Console\Commands\HactcmCommand;
  17. use App\Console\Commands\InitPermissionsCommand;
  18. use App\Console\Commands\LoadlogsCommand;
  19. use App\Console\Commands\TestCommand;
  20. use Illuminate\Console\Scheduling\Schedule;
  21. use Laravel\Lumen\Console\Kernel as ConsoleKernel;
  22. class Kernel extends ConsoleKernel
  23. {
  24. /**
  25. * The Artisan commands provided by your application.
  26. *
  27. * @var array
  28. */
  29. protected $commands = [
  30. TestCommand::class,
  31. InitPermissionsCommand::class,
  32. InitSettingCommand::class,
  33. RemoveModuleCommand::class,
  34. HactcmCommand::class,
  35. LoadlogsCommand::class,
  36. ];
  37. /**
  38. * Define the application's command schedule.
  39. *
  40. * @param \Illuminate\Console\Scheduling\Schedule $schedule
  41. */
  42. protected function schedule(Schedule $schedule)
  43. {
  44. // $schedule->command(PositionOnlineCommand::class)->daily();
  45. // $schedule->command(CheckBikeViolationCommand::class)->daily();
  46. }
  47. }