private _getParameterPattern ( string $template ) : array | ||
$template | string | |
return | 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));
}