%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/MarkBased.php

<?php

namespace FastRoute\DataGenerator;

class MarkBased extends RegexBasedAbstract
{
    protected function getApproxChunkSize()
    {
        return 30;
    }

    protected function processChunk($regexToRoutesMap)
    {
        $routeMap = [];
        $regexes = [];
        $markName = 'a';
        foreach ($regexToRoutesMap as $regex => $route) {
            $regexes[] = $regex . '(*MARK:' . $markName . ')';
            $routeMap[$markName] = [$route->handler, $route->variables];

            ++$markName;
        }

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

Zerion Mini Shell 1.0