This commit is contained in:
2021-09-16 11:51:20 +08:00
parent f5aeab0daf
commit f738099c66
8 changed files with 21 additions and 673 deletions
+18 -2
View File
@@ -101,11 +101,27 @@ class Kiri
return static::$service;
}
/**
* @return Application|null
*/
public static function getApplicationContext(): ?Application
{
return static::$service;
}
/**
* @return Container|null
*/
public static function getContainerContext(): ?Container
{
return static::$container;
}
/**
* @param $name
* @return bool
* @throws NotFindClassException
* @throws ReflectionException
*/
public static function has($name): bool
{