%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/projetos/admin.iigd.com.br/vendor/nikic/fast-route/src/Dispatcher/
Upload File :
Create Path :
Current File : /var/www/projetos/admin.iigd.com.br/vendor/nikic/fast-route/src/Dispatcher/MarkBased.php

<?php

namespace FastRoute\Dispatcher;

class MarkBased extends RegexBasedAbstract
{
    public function __construct($data)
    {
        list($this->staticRouteMap, $this->variableRouteData) = $data;
    }

    protected function dispatchVariableRoute($routeData, $uri)
    {
        foreach ($routeData as $data) {
            if (!preg_match($data['regex'], $uri, $matches)) {
                continue;
            }

            list($handler, $varNames) = $data['routeMap'][$matches['MARK']];

            $vars = [];
            $i = 0;
            foreach ($varNames as $varName) {
                $vars[$varName] = $matches[++$i];
            }
            return [self::FOUND, $handler, $vars];
        }

        return [self::NOT_FOUND];
    }
}

Zerion Mini Shell 1.0