改名
This commit is contained in:
@@ -401,6 +401,7 @@ class Node extends HttpService
|
||||
*/
|
||||
public function addMiddleware(Closure|string|array $class)
|
||||
{
|
||||
if (empty($class)) return;
|
||||
if (is_string($class)) {
|
||||
$class = Snowflake::createObject($class);
|
||||
if (!($class instanceof \HttpServer\IInterface\Middleware)) {
|
||||
|
||||
Reference in New Issue
Block a user