!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:     ResolveNamedArgumentsPass.php (5.45 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\AbstractArgument;
use 
Symfony\Component\DependencyInjection\Definition;
use 
Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
use 
Symfony\Component\DependencyInjection\LazyProxy\ProxyHelper;
use 
Symfony\Component\DependencyInjection\Reference;

/**
 * Resolves named arguments to their corresponding numeric index.
 *
 * @author Kévin Dunglas <[email protected]>
 */
class ResolveNamedArgumentsPass extends AbstractRecursivePass
{
    
/**
     * {@inheritdoc}
     */
    
protected function processValue($valuebool $isRoot false)
    {
        if (
$value instanceof AbstractArgument && $value->getText().'.' === $value->getTextWithContext()) {
            
$value->setContext(sprintf('A value found in service "%s"'$this->currentId));
        }

        if (!
$value instanceof Definition) {
            return 
parent::processValue($value$isRoot);
        }

        
$calls $value->getMethodCalls();
        
$calls[] = ['__construct'$value->getArguments()];

        foreach (
$calls as $i => $call) {
            [
$method$arguments] = $call;
            
$parameters null;
            
$resolvedArguments = [];

            foreach (
$arguments as $key => $argument) {
                if (
$argument instanceof AbstractArgument && $argument->getText().'.' === $argument->getTextWithContext()) {
                    
$argument->setContext(sprintf('Argument '.(\is_int($key) ? $key '"%3$s"').' of '.('__construct' === $method 'service "%s"' 'method call "%s::%s()"'), $this->currentId$method$key));
                }

                if (\
is_int($key)) {
                    
$resolvedArguments[$key] = $argument;
                    continue;
                }

                if (
null === $parameters) {
                    
$r $this->getReflectionMethod($value$method);
                    
$class $r instanceof \ReflectionMethod $r->class $this->currentId;
                    
$method $r->getName();
                    
$parameters $r->getParameters();
                }

                if (isset(
$key[0]) && '$' !== $key[0] && !class_exists($key) && !interface_exists($keyfalse)) {
                    throw new 
InvalidArgumentException(sprintf('Invalid service "%s": did you forget to add the "$" prefix to argument "%s"?'$this->currentId$key));
                }

                if (isset(
$key[0]) && '$' === $key[0]) {
                    foreach (
$parameters as $j => $p) {
                        if (
$key === '$'.$p->name) {
                            if (
$p->isVariadic() && \is_array($argument)) {
                                foreach (
$argument as $variadicArgument) {
                                    
$resolvedArguments[$j++] = $variadicArgument;
                                }
                            } else {
                                
$resolvedArguments[$j] = $argument;
                            }

                            continue 
2;
                        }
                    }

                    throw new 
InvalidArgumentException(sprintf('Invalid service "%s": method "%s()" has no argument named "%s". Check your service definition.'$this->currentId$class !== $this->currentId $class.'::'.$method $method$key));
                }

                if (
null !== $argument && !$argument instanceof Reference && !$argument instanceof Definition) {
                    throw new 
InvalidArgumentException(sprintf('Invalid service "%s": the value of argument "%s" of method "%s()" must be null, an instance of "%s" or an instance of "%s", "%s" given.'$this->currentId$key$class !== $this->currentId $class.'::'.$method $methodReference::class, Definition::class, get_debug_type($argument)));
                }

                
$typeFound false;
                foreach (
$parameters as $j => $p) {
                    if (!\
array_key_exists($j$resolvedArguments) && ProxyHelper::getTypeHint($r$ptrue) === $key) {
                        
$resolvedArguments[$j] = $argument;
                        
$typeFound true;
                    }
                }

                if (!
$typeFound) {
                    throw new 
InvalidArgumentException(sprintf('Invalid service "%s": method "%s()" has no argument type-hinted as "%s". Check your service definition.'$this->currentId$class !== $this->currentId $class.'::'.$method $method$key));
                }
            }

            if (
$resolvedArguments !== $call[1]) {
                
ksort($resolvedArguments);
                
$calls[$i][1] = $resolvedArguments;
            }
        }

        [, 
$arguments] = array_pop($calls);

        if (
$arguments !== $value->getArguments()) {
            
$value->setArguments($arguments);
        }
        if (
$calls !== $value->getMethodCalls()) {
            
$value->setMethodCalls($calls);
        }

        foreach (
$value->getProperties() as $key => $argument) {
            if (
$argument instanceof AbstractArgument && $argument->getText().'.' === $argument->getTextWithContext()) {
                
$argument->setContext(sprintf('Property "%s" of service "%s"'$key$this->currentId));
            }
        }

        return 
parent::processValue($value$isRoot);
    }
}

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