src/Chiron/Routing/Dispatcher.php
public function dispatchRequest(ServerRequestInterface $request): RouteResult
    {
        $httpMethod = $request->getMethod();
        $uri = rawurldecode($request->getUri()->getPath()); //$uri = '/' . ltrim($request->getUri()->getPath(), '/');

        $result = $this->dispatch($httpMethod, $uri);

        return $result[0] !== self::FOUND
            ? $this->marshalFailedRoute($result)
            : $this->marshalMatchedRoute($result);
    }
public function dispatchRequest(ServerRequestInterface $request): RouteResult
    {
        $httpMethod = $request->getMethod();
        $uri = rawurldecode($request->getUri()->getPath()); //$uri = '/' . ltrim($request->getUri()->getPath(), '/');

        $result = $this->dispatch($httpMethod, $uri);

        return $result[0] !== self::FOUND
            ? $this->marshalFailedRoute($result)
            : $this->marshalMatchedRoute($result);
    }
public function dispatchRequest ( ServerRequestInterface $ request ) : RouteResult { $ httpMethod = $ request -> getMethod ( ) ; $ uri = rawurldecode ( $ request -> getUri ( ) -> getPath ( ) ) ; //$uri = '/' . ltrim($request->getUri()->getPath(), '/'); $ result = $ this -> dispatch ( $ httpMethod , $ uri ) ; return $ result [ 0 ] !== self :: FOUND ? $ this -> marshalFailedRoute ( $ result ) : $ this -> marshalMatchedRoute ( $ result ) ; }
Dispatch the current route.

@see   https://github.com/nikic/FastRoute/blob/master/src/Dispatcher.php

@param \Psr\Http\Message\ServerRequestInterface $request

@return \Psr\Http\Message\ResponseInterface
Dispatch the current route .