This commit is contained in:
2021-09-06 16:22:24 +08:00
parent 4275decc05
commit 27cd78653d
+13
View File
@@ -74,6 +74,19 @@ class Router extends HttpService implements RouterInterface
}
/**
* @return mixed
* @throws ConfigException
* @throws Exception
*/
public static function getNamespace(): string
{
$router = Kiri::app()->getRouter();
return Config::get('http.namespace', $router->namespace);
}
/**
* @param bool $useTree
*/