src/Application.php
public function runMiddleware(Request $req, Response $res)
    {
        $this->initMiddleware()->rewind();

        return $this->nextMiddleware($req, $res);
    }
public function runMiddleware(Request $req, Response $res)
    {
        $this->initMiddleware()->rewind();

        return $this->nextMiddleware($req, $res);
    }
public function runMiddleware ( Request $ req , Response $ res ) { $ this -> initMiddleware ( ) -> rewind ( ) ; return $ this -> nextMiddleware ( $ req , $ res ) ; }
Runs the middleware chain.

@param Request  $req
@param Response $res

@return Response $res
Runs the middleware chain .