Use associative array to store custom namespaces

This commit is contained in:
Kijin Sung 2023-08-12 21:53:52 +09:00
parent 911772393a
commit a7954506f6
5 changed files with 22 additions and 22 deletions

View file

@ -42,16 +42,11 @@ class Config
}
}
if (!empty(self::$_config['namespaces']))
if (isset(self::$_config['namespaces']) && !empty(self::$_config['namespaces']['regexp']))
{
$GLOBALS['RX_NAMESPACES'] = self::$_config['namespaces'];
}
if (!empty(self::$_config['prefixes']))
{
$GLOBALS['RX_PREFIXES'] = self::$_config['prefixes'];
}
return self::$_config;
}