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);
    }
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);
    }
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 ) ; }
Returns a matcher that matches a Request to the route prefix.

@return UrlMatcher
Returns a matcher that matches a Request to the route prefix .