original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: 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
docstring_tokens: Returns a module by matching the request .