This commit is contained in:
2023-12-12 15:35:38 +08:00
parent 827fb257ab
commit 84c253a9f6
17 changed files with 271 additions and 302 deletions
+3 -7
View File
@@ -41,9 +41,7 @@ abstract class BaseApplication extends LocalService
* @param EventProvider $provider
* @param ConfigProvider $config
* @param ContainerInterface $container
* @throws ContainerExceptionInterface
* @throws InitException
* @throws NotFoundExceptionInterface
* @throws
*/
public function __construct(public EventProvider $provider, public ConfigProvider $config, public ContainerInterface $container)
{
@@ -71,7 +69,7 @@ abstract class BaseApplication extends LocalService
/**
* @param ConfigProvider $config
* @return void
* @throws InitException
* @throws
*/
public function parseStorage(ConfigProvider $config): void
{
@@ -91,9 +89,7 @@ abstract class BaseApplication extends LocalService
/**
* @param ConfigProvider $config
* @return void
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
* @throws Exception
* @throws
*/
public function parseEvents(ConfigProvider $config): void
{
+3 -3
View File
@@ -51,7 +51,7 @@ class Component implements Configure
/**
* @return StdoutLogger
* @throws ReflectionException
* @throws
*/
public function getLogger(): StdoutLogger
{
@@ -62,7 +62,7 @@ class Component implements Configure
/**
* @param string $name
* @return mixed
* @throws Exception
* @throws
*/
public function __get(string $name)
{
@@ -81,7 +81,7 @@ class Component implements Configure
* @param string $name
* @param $value
* @return void
* @throws Exception
* @throws
*/
public function __set(string $name, $value): void
{
+2 -2
View File
@@ -33,7 +33,7 @@ class LocalService extends Component implements LocalServiceInterface
/**
* @param string $name
* @return mixed
* @throws Exception
* @throws
*/
public function get(string $name): mixed
{
@@ -66,7 +66,7 @@ class LocalService extends Component implements LocalServiceInterface
/**
* @param string $name
* @return mixed
* @throws Exception
* @throws
*/
public function __get(string $name)
{