Exemplo n.º 1
0
 protected function schedule(Schedule $schedule)
 {
     // $schedule->command('inspire')
     //          ->hourly();
     $schedule->call(function () {
         // Process the Feeds
         \p4\Libraries\RSSParser::processFeeds();
     })->hourly();
     $schedule->call(function () {
         // Process the Feeds
         \p4\Libraries\RSSParser::updateTagScores();
     })->daily();
     $schedule->call(function () {
         // Process the Feeds
         \p4\Libraries\RSSParser::removeOldArticles(env('ARTICLE_KEEP_DAYS', 90));
     })->weekly();
     $schedule->call(function () {
         // Process the Feeds
         \p4\Libraries\RSSParser::processTrending();
     })->daily();
 }
Exemplo n.º 2
0
 public function processFeeds()
 {
     #Used for testing the downloading of articles
     \p4\Libraries\RSSParser::processFeeds();
 }
Exemplo n.º 3
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     // This will automatically populate the feeds with real articles
     \p4\Libraries\RSSParser::processFeeds();
 }