Kernel.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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\BindingsCommand;
  12. use App\Console\Commands\ControllerCommand;
  13. use App\Console\Commands\CriteriaCommand;
  14. use App\Console\Commands\EntityCommand;
  15. use App\Console\Commands\InitCourseCommand;
  16. use App\Console\Commands\InitPermissionCommand;
  17. use App\Console\Commands\InitRecipelsCommand;
  18. use App\Console\Commands\Lab\ImportLessonSchedules2Command;
  19. use App\Console\Commands\Lab\ImportLessonSchedulesCommand;
  20. use App\Console\Commands\Lesson\InitDataCommand;
  21. use App\Console\Commands\PresenterCommand;
  22. use App\Console\Commands\RepositoryCommand;
  23. use App\Console\Commands\TestCommand;
  24. use App\Console\Commands\TransformerCommand;
  25. use App\Console\Commands\ValidatorCommand;
  26. use Illuminate\Console\Scheduling\Schedule;
  27. use Laravel\Lumen\Console\Kernel as ConsoleKernel;
  28. class Kernel extends ConsoleKernel
  29. {
  30. /**
  31. * The Artisan commands provided by your application.
  32. *
  33. * @var array
  34. */
  35. protected $commands = [
  36. RepositoryCommand::class,
  37. BindingsCommand::class,
  38. ControllerCommand::class,
  39. CriteriaCommand::class,
  40. EntityCommand::class,
  41. PresenterCommand::class,
  42. TransformerCommand::class,
  43. ValidatorCommand::class,
  44. InitRecipelsCommand::class,
  45. InitCourseCommand::class,
  46. TestCommand::class,
  47. InitPermissionCommand::class,
  48. // InitDataCommand::class,
  49. // \App\Console\Commands\Lab\InitDataCommand::class,
  50. // ImportLessonSchedulesCommand::class,
  51. // ImportLessonSchedules2Command::class,
  52. \App\Console\Commands\InitDataCommand::class
  53. ];
  54. /**
  55. * Define the application's command schedule.
  56. *
  57. * @param \Illuminate\Console\Scheduling\Schedule $schedule
  58. */
  59. protected function schedule(Schedule $schedule)
  60. {
  61. }
  62. }