Example #1
0
 /**
  * The boot() method is called right before a request is routed
  */
 public function boot()
 {
     if (Configs::get('cache_time_out') == null) {
         Configs::set('cache_time_out', 'daily');
     }
     if (Configs::get('fetch_with_cron') == null) {
         Configs::set('fetch_with_cron', '1');
     }
     if (Configs::get('timezone') == null) {
         Configs::set('timezone', 'America/Los_Angeles');
     }
     date_default_timezone_set(Configs::get('timezone'));
 }