Example #1
0
 /**
  * Call this method to get singleton config
  *
  * @return Config
  */
 public static function getConfig($context = 'default')
 {
     // Get singleton instance
     static $inst = null;
     if ($inst === null) {
         $inst = new Config();
     }
     $inst->setContext($context);
     // get context
     // return $inst->getContext($context);
     return $inst;
 }