Example #1
0
 public static function parseConfig($path)
 {
     try {
         $content = file_get_contents($path);
         self::$params = Neon::decode($content);
     } catch (Exception $e) {
         error_log($e->getMessage());
         throw new configException('Cannot load config file');
     }
 }
Example #2
0
 public function setParams($params)
 {
     self::$params = $params;
 }