Exemplo n.º 1
0
 static function importConfig($settings)
 {
     self::$settings = array_merge(self::$settings, $settings);
     if (isset($settings['autoload_map'])) {
         self::loadLibraryMap($settings['autoload_map']);
     }
 }
Exemplo n.º 2
0
 /**
  * @param string $mode Settings file name (without extension)
  */
 static function setUp($mode = null)
 {
     if (null === self::$settings) {
         include APP_CONF_ROOT . $mode . '.php';
         self::$settings = $settings;
     }
     if (empty(self::$settings['autoload_map'])) {
         self::$settings['autoload_map'] = array();
     }
     self::$settings['autoload_map']['Naf'] = NAF_ROOT;
     self::$response = new Naf_Response();
     set_error_handler(array(__CLASS__, 'phpErrorHandler'));
     self::$_urlComposer = new Naf_Url();
 }