コード例 #1
0
ファイル: Kernel.php プロジェクト: pavelmalai/virtualcsgo
 /**
  * Define the application's command schedule.
  *
  * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
  * @return void
  */
 protected function schedule(Schedule $schedule)
 {
     $schedule->command('inspire')->hourly();
     $schedule->call(function () {
         $loader = new DataLoader();
         $loader->updateMatches();
     })->everyMinute();
 }
コード例 #2
0
 public function updatematches()
 {
     ini_set('max_execution_time', 300);
     $loader = new DataLoader();
     $loader->updateMatches();
 }