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);
    }