src/Router/Routes/Glob.php
public function getRoute(ServerRequestInterface $request)
    {
        $url = $request->getUri();
        $route = $this->findRoute($url, $request->getMethod());
        
        if ($route) {
            $route = $this->bind($route, $request, $this->splitUrl($url->getPath()));
        }
        
        return $route;
    }
public function getRoute(ServerRequestInterface $request)
    {
        $url = $request->getUri();
        $route = $this->findRoute($url, $request->getMethod());
        
        if ($route) {
            $route = $this->bind($route, $request, $this->splitUrl($url->getPath()));
        }
        
        return $route;
    }
public function getRoute ( ServerRequestInterface $ request ) { $ url = $ request -> getUri ( ) ; $ route = $ this -> findRoute ( $ url , $ request -> getMethod ( ) ) ; if ( $ route ) { $ route = $ this -> bind ( $ route , $ request , $ this -> splitUrl ( $ url -> getPath ( ) ) ) ; } return $ route ; }
Get route for the request

@param ServerRequestInterface $request
@return Route
Get route for the request