改名
This commit is contained in:
@@ -34,16 +34,10 @@ use Snowflake\Snowflake;
|
||||
/**
|
||||
* @param array $handler
|
||||
* @return array|string
|
||||
* @throws ReflectionException
|
||||
* @throws NotFindClassException
|
||||
*/
|
||||
public function execute(array $handler): array|string
|
||||
{
|
||||
// TODO: Implement execute() method.
|
||||
foreach ($this->after as $key => $item) {
|
||||
$this->after[$key] = [Snowflake::createObject($item), 'onHandler'];
|
||||
}
|
||||
return $this->after;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -34,16 +34,10 @@ use Snowflake\Snowflake;
|
||||
/**
|
||||
* @param array $handler
|
||||
* @return array|string
|
||||
* @throws ReflectionException
|
||||
* @throws NotFindClassException
|
||||
*/
|
||||
public function execute(array $handler): array|string
|
||||
{
|
||||
// TODO: Implement execute() method.
|
||||
foreach ($this->interceptor as $key => $item) {
|
||||
$this->interceptor[$key] = [Snowflake::createObject($item), 'Interceptor'];
|
||||
}
|
||||
return $this->interceptor;
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -34,16 +34,10 @@ use Snowflake\Snowflake;
|
||||
/**
|
||||
* @param array $handler
|
||||
* @return array|string
|
||||
* @throws ReflectionException
|
||||
* @throws NotFindClassException
|
||||
*/
|
||||
public function execute(array $handler): array|string
|
||||
{
|
||||
// TODO: Implement execute() method.
|
||||
foreach ($this->limits as $key => $item) {
|
||||
$this->limits[$key] = [Snowflake::createObject($item), 'next'];
|
||||
}
|
||||
return $this->limits;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -35,16 +35,10 @@ use Snowflake\Snowflake;
|
||||
/**
|
||||
* @param array $handler
|
||||
* @return array|string
|
||||
* @throws ReflectionException
|
||||
* @throws NotFindClassException
|
||||
*/
|
||||
public function execute(array $handler): array|string
|
||||
{
|
||||
// TODO: Implement execute() method.
|
||||
foreach ($this->middleware as $key => $item) {
|
||||
$this->middleware[$key] = [Snowflake::createObject($item), 'onHandler'];
|
||||
}
|
||||
return $this->middleware;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -40,7 +40,6 @@ use Annotation\IAnnotation;
|
||||
// TODO: Implement setHandler() method.
|
||||
$router = Snowflake::app()->getRouter();
|
||||
|
||||
var_dump($this->uri, $handler, $this->method);
|
||||
$router->addRoute($this->uri, $handler, $this->method);
|
||||
|
||||
return $router;
|
||||
|
||||
Reference in New Issue
Block a user