Ei kuvausta

Kernel.php 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php namespace App\Console;
  2. use Illuminate\Console\Scheduling\Schedule;
  3. use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
  4. class Kernel extends ConsoleKernel {
  5. /**
  6. * The Artisan commands provided by your application.
  7. *
  8. * @var array
  9. */
  10. protected $commands = [
  11. 'App\Console\Commands\AdzoneCreate',
  12. 'App\Console\Commands\OrderRateByDay',
  13. 'App\Console\Commands\OrderExcelAdd',
  14. 'App\Console\Commands\OrderRateByDayHistory',
  15. 'App\Console\Commands\TeamOrderRateByDay',
  16. 'App\Console\Commands\TeamOrderRateByDayHistory',
  17. 'App\Console\Commands\SendOrder',
  18. 'App\Console\Commands\DisRoiByDayHistory',
  19. 'App\Console\Commands\DisRoiByDay',
  20. 'App\Console\Commands\DisRoiByDay30',
  21. 'App\Console\Commands\DisRoiByDay30History',
  22. 'App\Console\Commands\SyncAdCost',
  23. 'App\Console\Commands\DisRoiByDay15',
  24. 'App\Console\Commands\DisRoiByDay15History',
  25. 'App\Console\Commands\DisRoiByDay45',
  26. 'App\Console\Commands\DisRoiByDay45History',
  27. 'App\Console\Commands\SyncMjOrderStatus',
  28. 'App\Console\Commands\SyncMjWarehouse',
  29. 'App\Console\Commands\SyncOrderToMj',
  30. ];
  31. /**
  32. * Define the application's command schedule.
  33. * @param \Illuminate\Console\Scheduling\Schedule $schedule
  34. * @return void
  35. */
  36. protected function schedule(Schedule $schedule)
  37. {
  38. $schedule->command('AdzoneCreate')
  39. ->hourly();
  40. }
  41. }