示例#1
0
 /**
  * Define the application's command schedule.
  *
  * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
  * @return void
  */
 protected function schedule(Schedule $schedule)
 {
     $schedule->call(function () {
         $sniffer = new TFSniffer();
         $sniffer->sniffNextUser();
         $downloader = new TFDownloader();
         $downloader->downloadNextFile();
     })->cron('* * * * *');
     $schedule->call(function () {
         $zipper = new TFZipper();
         $zipper->zipAll();
     })->dailyAt('23:59');
 }
示例#2
0
 public function getTestdownloader()
 {
     $downloader = new TFDownloader();
     $downloader->test();
 }