改名
This commit is contained in:
@@ -82,6 +82,7 @@ class Middleware
|
|||||||
[$controller, $action] = $node->handler;
|
[$controller, $action] = $node->handler;
|
||||||
$attributes = Snowflake::app()->getAttributes();
|
$attributes = Snowflake::app()->getAttributes();
|
||||||
$annotation = $attributes->getByClass(get_class($controller), $action);
|
$annotation = $attributes->getByClass(get_class($controller), $action);
|
||||||
|
var_dump($annotation);
|
||||||
foreach ($annotation as $item) {
|
foreach ($annotation as $item) {
|
||||||
if ($item instanceof Interceptor) {
|
if ($item instanceof Interceptor) {
|
||||||
$node->addInterceptor($item->interceptor);
|
$node->addInterceptor($item->interceptor);
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ class Reduce
|
|||||||
{
|
{
|
||||||
return function ($stack, $pipe) {
|
return function ($stack, $pipe) {
|
||||||
return function ($passable) use ($stack, $pipe) {
|
return function ($passable) use ($stack, $pipe) {
|
||||||
var_dump($pipe);
|
|
||||||
if ($pipe instanceof Middleware) {
|
if ($pipe instanceof Middleware) {
|
||||||
return $pipe->onHandler($passable, $stack);
|
return $pipe->onHandler($passable, $stack);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user