This commit is contained in:
2021-08-05 19:14:08 +08:00
parent f7ec2b6b98
commit 7f9ae9556b
9 changed files with 175 additions and 43 deletions
+4 -2
View File
@@ -6,7 +6,7 @@ defined('APP_PATH') or define('APP_PATH', realpath(__DIR__ . '/../../'));
use Annotation\Annotation;
use HttpServer\Http\Context;
use HttpServer\Http\HttpParams;
use HttpServer\Http\Request;
use Server\Constrict\Request;
use HttpServer\Http\Response as HttpResponse;
use HttpServer\Route\Router;
use JetBrains\PhpStorm\Pure;
@@ -818,8 +818,10 @@ if (!function_exists('isService')) {
/**
* @param string $name
* @return bool
* @throws NotFindClassException
* @throws ReflectionException
*/
#[Pure] function isService(string $name): bool
function isService(string $name): bool
{
return Snowflake::app()->has($name);
}