mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
应用类库自定义命名空间采用APP_NAMESPACE常量订阅
This commit is contained in:
@@ -414,9 +414,9 @@ class App
|
|||||||
public static function initCommon()
|
public static function initCommon()
|
||||||
{
|
{
|
||||||
if (empty(self::$init)) {
|
if (empty(self::$init)) {
|
||||||
$array = include CONF_PATH . 'config' . CONF_EXT;
|
if (defined('APP_NAMESPACE')) {
|
||||||
// 注册应用命名空间
|
self::$namespace = APP_NAMESPACE;
|
||||||
self::$namespace = $array['app_namespace'];
|
}
|
||||||
Loader::addNamespace(self::$namespace, APP_PATH);
|
Loader::addNamespace(self::$namespace, APP_PATH);
|
||||||
|
|
||||||
// 初始化应用
|
// 初始化应用
|
||||||
|
|||||||
Reference in New Issue
Block a user