!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.26 GB of 96.73 GB (86.07%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     AnalyzeServiceReferencesPass.php (6.18 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\Argument\ArgumentInterface;
use 
Symfony\Component\DependencyInjection\Argument\IteratorArgument;
use 
Symfony\Component\DependencyInjection\ContainerBuilder;
use 
Symfony\Component\DependencyInjection\ContainerInterface;
use 
Symfony\Component\DependencyInjection\Definition;
use 
Symfony\Component\DependencyInjection\Reference;

/**
 * Run this pass before passes that need to know more about the relation of
 * your services.
 *
 * This class will populate the ServiceReferenceGraph with information. You can
 * retrieve the graph in other passes from the compiler.
 *
 * @author Johannes M. Schmitt <[email protected]>
 * @author Nicolas Grekas <[email protected]>
 */
class AnalyzeServiceReferencesPass extends AbstractRecursivePass
{
    private 
$graph;
    private 
$currentDefinition;
    private 
$onlyConstructorArguments;
    private 
$hasProxyDumper;
    private 
$lazy;
    private 
$byConstructor;
    private 
$byFactory;
    private 
$definitions;
    private 
$aliases;

    
/**
     * @param bool $onlyConstructorArguments Sets this Service Reference pass to ignore method calls
     */
    
public function __construct(bool $onlyConstructorArguments falsebool $hasProxyDumper true)
    {
        
$this->onlyConstructorArguments $onlyConstructorArguments;
        
$this->hasProxyDumper $hasProxyDumper;
        
$this->enableExpressionProcessing();
    }

    
/**
     * Processes a ContainerBuilder object to populate the service reference graph.
     */
    
public function process(ContainerBuilder $container)
    {
        
$this->container $container;
        
$this->graph $container->getCompiler()->getServiceReferenceGraph();
        
$this->graph->clear();
        
$this->lazy false;
        
$this->byConstructor false;
        
$this->byFactory false;
        
$this->definitions $container->getDefinitions();
        
$this->aliases $container->getAliases();

        foreach (
$this->aliases as $id => $alias) {
            
$targetId $this->getDefinitionId((string) $alias);
            
$this->graph->connect($id$alias$targetIdnull !== $targetId $this->container->getDefinition($targetId) : nullnull);
        }

        try {
            
parent::process($container);
        } finally {
            
$this->aliases $this->definitions = [];
        }
    }

    protected function 
processValue($valuebool $isRoot false)
    {
        
$lazy $this->lazy;
        
$inExpression $this->inExpression();

        if (
$value instanceof ArgumentInterface) {
            
$this->lazy = !$this->byFactory || !$value instanceof IteratorArgument;
            
parent::processValue($value->getValues());
            
$this->lazy $lazy;

            return 
$value;
        }
        if (
$value instanceof Reference) {
            
$targetId $this->getDefinitionId((string) $value);
            
$targetDefinition null !== $targetId $this->container->getDefinition($targetId) : null;

            
$this->graph->connect(
                
$this->currentId,
                
$this->currentDefinition,
                
$targetId,
                
$targetDefinition,
                
$value,
                
$this->lazy || ($this->hasProxyDumper && $targetDefinition && $targetDefinition->isLazy()),
                
ContainerInterface::IGNORE_ON_UNINITIALIZED_REFERENCE === $value->getInvalidBehavior(),
                
$this->byConstructor
            
);

            if (
$inExpression) {
                
$this->graph->connect(
                    
'.internal.reference_in_expression',
                    
null,
                    
$targetId,
                    
$targetDefinition,
                    
$value,
                    
$this->lazy || ($targetDefinition && $targetDefinition->isLazy()),
                    
true
               
);
            }

            return 
$value;
        }
        if (!
$value instanceof Definition) {
            return 
parent::processValue($value$isRoot);
        }
        if (
$isRoot) {
            if (
$value->isSynthetic() || $value->isAbstract()) {
                return 
$value;
            }
            
$this->currentDefinition $value;
        } elseif (
$this->currentDefinition === $value) {
            return 
$value;
        }
        
$this->lazy false;

        
$byConstructor $this->byConstructor;
        
$this->byConstructor $isRoot || $byConstructor;

        
$byFactory $this->byFactory;
        
$this->byFactory true;
        
$this->processValue($value->getFactory());
        
$this->byFactory $byFactory;
        
$this->processValue($value->getArguments());

        
$properties $value->getProperties();
        
$setters $value->getMethodCalls();

        
// Any references before a "wither" are part of the constructor-instantiation graph
        
$lastWitherIndex null;
        foreach (
$setters as $k => $call) {
            if (
$call[2] ?? false) {
                
$lastWitherIndex $k;
            }
        }

        if (
null !== $lastWitherIndex) {
            
$this->processValue($properties);
            
$setters $properties = [];

            foreach (
$value->getMethodCalls() as $k => $call) {
                if (
null === $lastWitherIndex) {
                    
$setters[] = $call;
                    continue;
                }

                if (
$lastWitherIndex === $k) {
                    
$lastWitherIndex null;
                }

                
$this->processValue($call);
            }
        }

        
$this->byConstructor $byConstructor;

        if (!
$this->onlyConstructorArguments) {
            
$this->processValue($properties);
            
$this->processValue($setters);
            
$this->processValue($value->getConfigurator());
        }
        
$this->lazy $lazy;

        return 
$value;
    }

    private function 
getDefinitionId(string $id): ?string
    
{
        while (isset(
$this->aliases[$id])) {
            
$id = (string) $this->aliases[$id];
        }

        return isset(
$this->definitions[$id]) ? $id null;
    }
}

:: 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.0047 ]--