This commit is contained in:
2021-09-24 17:22:02 +08:00
parent 0aafbb03e2
commit dbc30827f8
86 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -34,12 +34,13 @@
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Kiri\\": "core/", "Kiri\\": "kiri-core/",
"Http\\Message\\": "http-message/", "Http\\Message\\": "http-message/",
"Http\\Coroutine\\": "http-coroutine/",
"Http\\Handler\\": "http-handler/", "Http\\Handler\\": "http-handler/",
"Server\\": "http-server/", "Server\\": "http-server/",
"Gii\\": "kiri-gii/", "Gii\\": "kiri-gii/",
"Annotation\\": "note/" "Annotation\\": "kiri-note/"
}, },
"files": [ "files": [
"error.php", "error.php",
+2 -2
View File
@@ -593,7 +593,7 @@ class Kiri
return; return;
} }
static::$_autoload[$class] = $file; static::$_autoload[$class] = $file;
include_once "$file"; include_once "Kiri.php";
} }
@@ -606,7 +606,7 @@ class Kiri
return; return;
} }
$file = static::$_autoload[$className]; $file = static::$_autoload[$className];
require_once "$file"; require_once "Kiri.php";
} }