This commit is contained in:
as2252258@163.com
2021-08-04 01:09:58 +08:00
parent fa4b1197c6
commit 724f3504d0
+14 -1
View File
@@ -459,7 +459,8 @@ abstract class BaseApplication extends Component
/** /**
* @param $array * @param $id
* @param $definition
* @throws \ReflectionException * @throws \ReflectionException
* @throws \Snowflake\Exception\NotFindClassException * @throws \Snowflake\Exception\NotFindClassException
*/ */
@@ -469,6 +470,18 @@ abstract class BaseApplication extends Component
} }
/**
* @param $id
* @param $definition
* @throws \ReflectionException
* @throws \Snowflake\Exception\NotFindClassException
*/
public function has($id): bool
{
return di(Service::class)->has($id);
}
/** /**
* @throws Exception * @throws Exception