This commit is contained in:
2021-09-07 11:44:12 +08:00
parent 0cdb8c5b20
commit 86880f8b1f
5 changed files with 11 additions and 17 deletions
+1 -3
View File
@@ -1006,7 +1006,7 @@ if (!function_exists('router')) {
*/
function router(): Router
{
return Kiri::app()->getRouter();
return Kiri::getDi()->get(Router::class);
}
}
@@ -1018,8 +1018,6 @@ if (!function_exists('isService')) {
/**
* @param string $name
* @return bool
* @throws NotFindClassException
* @throws ReflectionException
*/
function isService(string $name): bool
{