src/Matcher.php
protected function buildRoute(Route $route)
    {
        if ($route->getBlock()) {
            return $route;
        }

        list($pattern, $params) = $this->parsePlaceholders($route->getPattern());
        return $route->setPatternWithoutReset($pattern)->setParams($params)->setBlock(true);
    }
protected function buildRoute(Route $route)
    {
        if ($route->getBlock()) {
            return $route;
        }

        list($pattern, $params) = $this->parsePlaceholders($route->getPattern());
        return $route->setPatternWithoutReset($pattern)->setParams($params)->setBlock(true);
    }
protected function buildRoute ( Route $ route ) { if ( $ route -> getBlock ( ) ) { return $ route ; } list ( $ pattern , $ params ) = $ this -> parsePlaceholders ( $ route -> getPattern ( ) ) ; return $ route -> setPatternWithoutReset ( $ pattern ) -> setParams ( $ params ) -> setBlock ( true ) ; }
Parse the dynamic segments of the pattern and replace then for
corresponding regex.

@param Route $route
@return Route
Parse the dynamic segments of the pattern and replace then for corresponding regex .