%PDF- %PDF-
Mini Shell

Mini Shell

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

<?php

namespace FastRoute\DataGenerator;

class GroupPosBased extends RegexBasedAbstract
{
    protected function getApproxChunkSize()
    {
        return 10;
    }

    protected function processChunk($regexToRoutesMap)
    {
        $routeMap = [];
        $regexes = [];
        $offset = 1;
        foreach ($regexToRoutesMap as $regex => $route) {
            $regexes[] = $regex;
            $routeMap[$offset] = [$route->handler, $route->variables];

            $offset += count($route->variables);
        }

        $regex = '~^(?:' . implode('|', $regexes) . ')$~';
        return ['regex' => $regex, 'routeMap' => $routeMap];
    }
}

Zerion Mini Shell 1.0