!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/queuepro/vendor/symfony/routing/Generator/   drwxrwxr-x
Free 13.22 GB of 57.97 GB (22.8%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     CompiledUrlGenerator.php (2.49 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Routing\Generator;

use 
Psr\Log\LoggerInterface;
use 
Symfony\Component\Routing\Exception\RouteNotFoundException;
use 
Symfony\Component\Routing\RequestContext;

/**
 * Generates URLs based on rules dumped by CompiledUrlGeneratorDumper.
 */
class CompiledUrlGenerator extends UrlGenerator
{
    private array 
$compiledRoutes = [];
    private ?
string $defaultLocale;

    public function 
__construct(array $compiledRoutesRequestContext $contextLoggerInterface $logger nullstring $defaultLocale null)
    {
        
$this->compiledRoutes $compiledRoutes;
        
$this->context $context;
        
$this->logger $logger;
        
$this->defaultLocale $defaultLocale;
    }

    public function 
generate(string $name, array $parameters = [], int $referenceType self::ABSOLUTE_PATH): string
    
{
        
$locale $parameters['_locale']
            ?? 
$this->context->getParameter('_locale')
            ?: 
$this->defaultLocale;

        if (
null !== $locale) {
            do {
                if ((
$this->compiledRoutes[$name.'.'.$locale][1]['_canonical_route'] ?? null) === $name) {
                    
$name .= '.'.$locale;
                    break;
                }
            } while (
false !== $locale strstr($locale'_'true));
        }

        if (!isset(
$this->compiledRoutes[$name])) {
            throw new 
RouteNotFoundException(sprintf('Unable to generate a URL for the named route "%s" as such route does not exist.'$name));
        }

        [
$variables$defaults$requirements$tokens$hostTokens$requiredSchemes$deprecations] = $this->compiledRoutes[$name] + [=> []];

        foreach (
$deprecations as $deprecation) {
            
trigger_deprecation($deprecation['package'], $deprecation['version'], $deprecation['message']);
        }

        if (isset(
$defaults['_canonical_route']) && isset($defaults['_locale'])) {
            if (!
\in_array('_locale'$variablestrue)) {
                unset(
$parameters['_locale']);
            } elseif (!isset(
$parameters['_locale'])) {
                
$parameters['_locale'] = $defaults['_locale'];
            }
        }

        return 
$this->doGenerate($variables$defaults$requirements$tokens$parameters$name$referenceType$hostTokens$requiredSchemes);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0056 ]--