Definition at line 5 of file GroupCountBased.php.
◆ __construct()
FastRoute\Dispatcher\GroupCountBased::__construct |
( |
|
$data | ) |
|
◆ dispatchVariableRoute()
FastRoute\Dispatcher\GroupCountBased::dispatchVariableRoute |
( |
|
$routeData, |
|
|
|
$uri |
|
) |
| |
|
protected |
Definition at line 12 of file GroupCountBased.php.
References $data, $handler, and $i.
14 foreach ($routeData as
$data) {
15 if (!preg_match($data[
'regex'], $uri, $matches)) {
19 list(
$handler, $varNames) = $data[
'routeMap'][count($matches)];
23 foreach ($varNames as $varName) {
24 $vars[$varName] = $matches[++
$i];
26 return [self::FOUND,
$handler, $vars];
29 return [self::NOT_FOUND];
The documentation for this class was generated from the following file: