This commit is contained in:
2021-07-12 17:17:36 +08:00
parent f2083f1eaf
commit 857ec53870
20 changed files with 384 additions and 346 deletions
+2 -1
View File
@@ -35,7 +35,8 @@ use Annotation\Attribute;
/**
* @param array $handler
* @param mixed $class
* @param mixed|null $method
* @return array
*/
public function execute(mixed $class, mixed $method = null): array
+2 -2
View File
@@ -29,9 +29,9 @@ use Snowflake\Snowflake;
/**
* @param array $handler
* @param mixed $class
* @param mixed|null $method
* @return bool
* @throws Exception
*/
public function execute(mixed $class, mixed $method = null): bool
{
+3 -2
View File
@@ -21,7 +21,7 @@ use Snowflake\Snowflake;
* @param string|array $interceptor
* @throws
*/
#[Pure] public function __construct(public string|array $interceptor)
public function __construct(public string|array $interceptor)
{
if (is_string($this->interceptor)) {
$this->interceptor = [$this->interceptor];
@@ -40,7 +40,8 @@ use Snowflake\Snowflake;
/**
* @param array $handler
* @param mixed $class
* @param mixed|null $method
* @return Interceptor
*/
public function execute(mixed $class, mixed $method = null): static
+2 -1
View File
@@ -39,7 +39,8 @@ use Snowflake\Snowflake;
/**
* @param array $handler
* @param mixed $class
* @param mixed|null $method
* @return Limits
*/
public function execute(mixed $class, mixed $method = null): static
+2 -1
View File
@@ -40,7 +40,8 @@ use HttpServer\IInterface\Middleware as IMiddleware;
/**
* @param array $handler
* @param mixed $class
* @param mixed|null $method
* @return Middleware
*/
public function execute(mixed $class, mixed $method = null): static
+2 -2
View File
@@ -29,9 +29,9 @@ use Snowflake\Snowflake;
/**
* @param array $handler
* @param mixed $class
* @param mixed|null $method
* @return Router
* @throws ConfigException
* @throws Exception
*/
public function execute(mixed $class, mixed $method = null): Router
+6 -6
View File
@@ -35,12 +35,12 @@ use Snowflake\Snowflake;
}
/**
* @param array $handler
* @return Router
* @throws Exception
*/
/**
* @param mixed $class
* @param mixed|null $method
* @return Router
* @throws Exception
*/
public function execute(mixed $class, mixed $method = null): Router
{
// TODO: Implement setHandler() method.