Esempio n. 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');
 }
Esempio n. 2
0
 public function getTestsniffer()
 {
     $sniffer = new TFSniffer();
     $sniffer->test();
 }