改名
This commit is contained in:
@@ -27,12 +27,11 @@ use Psr\Http\Server\MiddlewareInterface;
|
|||||||
$this->middleware = [$this->middleware];
|
$this->middleware = [$this->middleware];
|
||||||
}
|
}
|
||||||
$array = [];
|
$array = [];
|
||||||
|
|
||||||
|
|
||||||
foreach ($this->middleware as $value) {
|
foreach ($this->middleware as $value) {
|
||||||
if (!in_array(MiddlewareInterface::class, class_implements($value))) {
|
if (!in_array(MiddlewareInterface::class, class_implements($value))) {
|
||||||
throw new \Exception('The middleware');
|
throw new \Exception('The middleware');
|
||||||
}
|
}
|
||||||
|
$array[] = $value;
|
||||||
}
|
}
|
||||||
$this->middleware = $array;
|
$this->middleware = $array;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user