public function registerSchedule($schedule)
 {
     /** @var  Schedule  $schedule */
     $schedule->command('klubitus:facebookimport --save')->everyTenMinutes()->when(function () {
         return (bool) CalendarSettings::get('facebook_import_enabled');
     })->sendOutputTo(Application::getInstance()->storagePath() . '/logs/facebook_import.log');
 }
Example #2
0
 /**
  * Set the globally available instance of the container.
  *
  * @return static 
  * @static 
  */
 public static function getInstance()
 {
     //Method inherited from \Illuminate\Container\Container
     return \October\Rain\Foundation\Application::getInstance();
 }