改名
This commit is contained in:
@@ -212,8 +212,6 @@ class Loader extends BaseObject
|
|||||||
$explode = explode('\\', $replace);
|
$explode = explode('\\', $replace);
|
||||||
array_shift($explode);
|
array_shift($explode);
|
||||||
|
|
||||||
echo $namespace . '\\' . implode('\\', $explode) . PHP_EOL;
|
|
||||||
|
|
||||||
return $namespace . '\\' . implode('\\', $explode);
|
return $namespace . '\\' . implode('\\', $explode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ class Middleware
|
|||||||
$node->addAfter($attribute->after);
|
$node->addAfter($attribute->after);
|
||||||
}
|
}
|
||||||
if ($attribute instanceof RMiddleware) {
|
if ($attribute instanceof RMiddleware) {
|
||||||
|
var_dump($attribute->middleware);
|
||||||
$node->addMiddleware($attribute->middleware);
|
$node->addMiddleware($attribute->middleware);
|
||||||
}
|
}
|
||||||
if ($attribute instanceof Limits) {
|
if ($attribute instanceof Limits) {
|
||||||
|
|||||||
@@ -405,9 +405,9 @@ class Node extends HttpService
|
|||||||
$class = [$class];
|
$class = [$class];
|
||||||
}
|
}
|
||||||
foreach ($class as $closure) {
|
foreach ($class as $closure) {
|
||||||
// if (in_array($closure, $this->middleware)) {
|
if (in_array($closure, $this->middleware)) {
|
||||||
// continue;
|
continue;
|
||||||
// }
|
}
|
||||||
$this->middleware[] = $closure;
|
$this->middleware[] = $closure;
|
||||||
}
|
}
|
||||||
return $this;
|
return $this;
|
||||||
|
|||||||
Reference in New Issue
Block a user