private array
$regexpList =
[];
private array
$dynamicRoutes =
[];
/**
* @var callable|null
*/
private $checkCondition;
public function match(string
$pathinfo): array
{ $allow =
$allowSchemes =
[];
if ($ret =
$this->
doMatch($pathinfo,
$allow,
$allowSchemes)) { return $ret;
} if ($allow) { throw new MethodNotAllowedException(array_keys($allow));
} if (!
$this instanceof RedirectableUrlMatcherInterface
) { throw new ResourceNotFoundException(sprintf('No routes found for "%s".',
$pathinfo));
} if (!\
in_array($this->context->
getMethod(),
['HEAD', 'GET'
], true
)) { // no-op
} elseif ($allowSchemes) {