Beispiel #1
0
 /**
  * Get Instance
  *
  * This method returns the Singleton instance of the app
  * environment; if not already set or if a refreshed
  * environment is requested, parse the environment
  * and return the newly stored results.
  *
  * @param   bool    $refresh
  * @return  array
  */
 public static function getInstance($refresh = false)
 {
     if (!isset(self::$env) || $refresh) {
         self::$env = self::prepare();
     }
     return self::$env;
 }