public function getModuleByRequest(Request $request)
    {
        $parameters = $this->getInitialMatcher()->matchRequest($request);

        // Since a matcher throws an exception on failure, this will only be reached
        // if the match was successful.

        return $this->provider->loadModuleByRequest($request, $parameters);
    }
public function getModuleByRequest(Request $request)
    {
        $parameters = $this->getInitialMatcher()->matchRequest($request);

        // Since a matcher throws an exception on failure, this will only be reached
        // if the match was successful.

        return $this->provider->loadModuleByRequest($request, $parameters);
    }
public function getModuleByRequest ( Request $ request ) { $ parameters = $ this -> getInitialMatcher ( ) -> matchRequest ( $ request ) ; // Since a matcher throws an exception on failure, this will only be reached // if the match was successful. return $ this -> provider -> loadModuleByRequest ( $ request , $ parameters ) ; }
Returns a module by matching the request.

@param Request $request The request to match

@return ModuleInterface
@throws ResourceNotFoundException If no matching resource or module could be found
@throws MethodNotAllowedException If a matching resource was found but the request method is not allowed
Returns a module by matching the request .