!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

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

Safe-mode: OFF (not secure)

/usr/share/php/Symfony/Component/DependencyInjection/Compiler/   drwxr-xr-x
Free 83.25 GB of 96.73 GB (86.06%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ResolveDecoratorStackPass.php (4.5 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

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

namespace Symfony\Component\DependencyInjection\Compiler;

use 
Symfony\Component\DependencyInjection\Alias;
use 
Symfony\Component\DependencyInjection\ChildDefinition;
use 
Symfony\Component\DependencyInjection\ContainerBuilder;
use 
Symfony\Component\DependencyInjection\Definition;
use 
Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
use 
Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException;
use 
Symfony\Component\DependencyInjection\Reference;

/**
 * @author Nicolas Grekas <[email protected]>
 */
class ResolveDecoratorStackPass implements CompilerPassInterface
{
    private 
$tag;

    public function 
__construct(string $tag 'container.stack')
    {
        if (
< \func_num_args()) {
            
trigger_deprecation('symfony/dependency-injection''5.3''Configuring "%s" is deprecated.'__CLASS__);
        }

        
$this->tag $tag;
    }

    public function 
process(ContainerBuilder $container)
    {
        
$stacks = [];

        foreach (
$container->findTaggedServiceIds($this->tag) as $id => $tags) {
            
$definition $container->getDefinition($id);

            if (!
$definition instanceof ChildDefinition) {
                throw new 
InvalidArgumentException(sprintf('Invalid service "%s": only definitions with a "parent" can have the "%s" tag.'$id$this->tag));
            }

            if (!
$stack $definition->getArguments()) {
                throw new 
InvalidArgumentException(sprintf('Invalid service "%s": the stack of decorators is empty.'$id));
            }

            
$stacks[$id] = $stack;
        }

        if (!
$stacks) {
            return;
        }

        
$resolvedDefinitions = [];

        foreach (
$container->getDefinitions() as $id => $definition) {
            if (!isset(
$stacks[$id])) {
                
$resolvedDefinitions[$id] = $definition;
                continue;
            }

            foreach (
array_reverse($this->resolveStack($stacks, [$id]), true) as $k => $v) {
                
$resolvedDefinitions[$k] = $v;
            }

            
$alias $container->setAlias($id$k);

            if (
$definition->getChanges()['public'] ?? false) {
                
$alias->setPublic($definition->isPublic());
            }

            if (
$definition->isDeprecated()) {
                
$alias->setDeprecated(...array_values($definition->getDeprecation('%alias_id%')));
            }
        }

        
$container->setDefinitions($resolvedDefinitions);
    }

    private function 
resolveStack(array $stacks, array $path): array
    {
        
$definitions = [];
        
$id end($path);
        
$prefix '.'.$id.'.';

        if (!isset(
$stacks[$id])) {
            return [
$id => new ChildDefinition($id)];
        }

        if (
key($path) !== $searchKey array_search($id$path)) {
            throw new 
ServiceCircularReferenceException($id, \array_slice($path$searchKey));
        }

        foreach (
$stacks[$id] as $k => $definition) {
            if (
$definition instanceof ChildDefinition && isset($stacks[$definition->getParent()])) {
                
$path[] = $definition->getParent();
                
$definition unserialize(serialize($definition)); // deep clone
            
} elseif ($definition instanceof Definition) {
                
$definitions[$decoratedId $prefix.$k] = $definition;
                continue;
            } elseif (
$definition instanceof Reference || $definition instanceof Alias) {
                
$path[] = (string) $definition;
            } else {
                throw new 
InvalidArgumentException(sprintf('Invalid service "%s": unexpected value of type "%s" found in the stack of decorators.'$idget_debug_type($definition)));
            }

            
$p $prefix.$k;

            foreach (
$this->resolveStack($stacks$path) as $k => $v) {
                
$definitions[$decoratedId $p.$k] = $definition instanceof ChildDefinition $definition->setParent($k) : new ChildDefinition($k);
                
$definition null;
            }
            
array_pop($path);
        }

        if (
=== \count($path)) {
            foreach (
$definitions as $k => $definition) {
                
$definition->setPublic(false)->setTags([])->setDecoratedService($decoratedId);
            }
            
$definition->setDecoratedService(null);
        }

        return 
$definitions;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0048 ]--