src/Middleware/Middleware/RoutingMiddleware.php
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $routeMatch = $this->router->match($request);

        $request = $this->modifyRequestAttributes($routeMatch, $request);

        return $handler->handle($request);
    }
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $routeMatch = $this->router->match($request);

        $request = $this->modifyRequestAttributes($routeMatch, $request);

        return $handler->handle($request);
    }
Process an incoming server request and return a response, optionally delegating
to the next middleware component to create the response.

@param ServerRequestInterface $request
@param RequestHandlerInterface $handler

@throws \Engraving\Router\Exception\RouterException

@return ResponseInterface