/** * 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'); }
public function getTestsniffer() { $sniffer = new TFSniffer(); $sniffer->test(); }