Ergo\Routing\Route::_getParameterPattern PHP 메소드

_getParameterPattern() 개인적인 메소드

Gets a pattern that can be used for parsing a template
private _getParameterPattern ( string $template ) : array
$template string
리턴 array list of
    private function _getParameterPattern($template)
    {
        // support star matches
        $template = preg_replace('/\\*/', '.*?', $template);
        return sprintf('#^%s$#', preg_replace_callback(self::REGEX_PARAM, array($this, '_typePatternCallback'), $template));
    }