original_string: public function getInitialMatcher()
      {
          if (null !== $this->initialMatcher) {
              return $this->initialMatcher;
          }
  
          $route = sprintf('%s/{_modular_path}', $this->routePrefix['path']);
  
          $collection = new RouteCollection;
          $collection->add('modular', new Route(
              $route,
              $this->routePrefix['defaults'],
              array_merge(
                  $this->routePrefix['requirements'],
                  ['_modular_path' => '.+']
              )
          ));
  
          return $this->initialMatcher = new UrlMatcher($collection, $this->context);
      }
code: public function getInitialMatcher()
      {
          if (null !== $this->initialMatcher) {
              return $this->initialMatcher;
          }
  
          $route = sprintf('%s/{_modular_path}', $this->routePrefix['path']);
  
          $collection = new RouteCollection;
          $collection->add('modular', new Route(
              $route,
              $this->routePrefix['defaults'],
              array_merge(
                  $this->routePrefix['requirements'],
                  ['_modular_path' => '.+']
              )
          ));
  
          return $this->initialMatcher = new UrlMatcher($collection, $this->context);
      }
code_tokens: public function getInitialMatcher ( ) { if ( null !== $ this -> initialMatcher ) { return $ this -> initialMatcher ; } $ route = sprintf ( '%s/{_modular_path}' , $ this -> routePrefix [ 'path' ] ) ; $ collection = new RouteCollection ; $ collection -> add ( 'modular' , new Route ( $ route , $ this -> routePrefix [ 'defaults' ] , array_merge ( $ this -> routePrefix [ 'requirements' ] , [ '_modular_path' => '.+' ] ) ) ) ; return $ this -> initialMatcher = new UrlMatcher ( $ collection , $ this -> context ) ; }
docstring: Returns a matcher that matches a Request to the route prefix.
  
  @return UrlMatcher
docstring_tokens: Returns a matcher that matches a Request to the route prefix .