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'); } }
public function setParams($params) { self::$params = $params; }