Ergo\Routing\Route::_getMatches PHP Method

_getMatches() protected method

Returns empty array if no matches found (indicating route doesn't match $path).
protected _getMatches ( string $path ) : array
$path string
return array
    protected function _getMatches($path)
    {
        preg_match($this->_pattern, $path, $matches);
        return $matches;
    }