Пример #1
0
 /**
  * Instanciates the configuration once
  * To avoid using Singletons. Checks if the static property $config
  * exits before re-instanciating config.
  * 
  * @return ConfigurationManager the config
  */
 private function loadConfig()
 {
     if (isset(self::$config)) {
         return self::$config;
     } else {
         $config = new ConfigurationManager(array(BUSINESS . '../conf/apps.ini', BUSINESS . 'conf/' . $this->module . '.ini'), new INIConfigurationParser());
         $config->merge();
         self::$config = $config;
         return $config;
     }
 }