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