Ergo\Routing\Route::_extractParameterNames PHP Method

_extractParameterNames() private method

private _extractParameterNames ( string $template ) : array
$template string
return array list of parameter names contained in the template.
    private function _extractParameterNames($template)
    {
        if (!is_string($template)) {
            throw new \InvalidArgumentException("Template is not a string");
        }
        preg_match_all(self::REGEX_PARAM, $template, $matches);
        return $matches[1];
    }