Kernel.php 1.5 KB

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