src/Middleware/MiddlewareCollection.php
public function process(ServerRequestInterface $request, RequestHandlerInterface $requestHandler): ResponseInterface
    {
        $dispatcher = new Dispatcher($this->middlewares, $requestHandler);

        return $dispatcher->handle($request);
    }
public function process(ServerRequestInterface $request, RequestHandlerInterface $requestHandler): ResponseInterface
    {
        $dispatcher = new Dispatcher($this->middlewares, $requestHandler);

        return $dispatcher->handle($request);
    }
@param ServerRequestInterface  $request
@param RequestHandlerInterface $requestHandler

@return ResponseInterface