public function addMiddleware(MiddlewareInterface ...$middlewares) : self
    {
        foreach ($middlewares as $middleware) {
            $this->stack->push($middleware);
        }

        return $this;
    }
public function addMiddleware(MiddlewareInterface ...$middlewares) : self
    {
        foreach ($middlewares as $middleware) {
            $this->stack->push($middleware);
        }

        return $this;
    }
public function addMiddleware ( MiddlewareInterface ... $ middlewares ) : self { foreach ( $ middlewares as $ middleware ) { $ this -> stack -> push ( $ middleware ) ; } return $ this ; }
Add middleware to stack.
Add middleware to stack .