modify
This commit is contained in:
@@ -459,7 +459,8 @@ abstract class BaseApplication extends Component
|
||||
|
||||
|
||||
/**
|
||||
* @param $array
|
||||
* @param $id
|
||||
* @param $definition
|
||||
* @throws \ReflectionException
|
||||
* @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
|
||||
|
||||
Reference in New Issue
Block a user