예제 #1
0
 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');
 }
예제 #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();
 }