!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/cloud_campaign/vendor/symfony/http-kernel/Controller/   drwxr-xr-x
Free 13.23 GB of 57.97 GB (22.83%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ArgumentResolver.php (3.56 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\HttpKernel\Controller;

use 
Symfony\Component\HttpFoundation\Request;
use 
Symfony\Component\HttpKernel\Controller\ArgumentResolver\DefaultValueResolver;
use 
Symfony\Component\HttpKernel\Controller\ArgumentResolver\RequestAttributeValueResolver;
use 
Symfony\Component\HttpKernel\Controller\ArgumentResolver\RequestValueResolver;
use 
Symfony\Component\HttpKernel\Controller\ArgumentResolver\SessionValueResolver;
use 
Symfony\Component\HttpKernel\Controller\ArgumentResolver\VariadicValueResolver;
use 
Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadataFactory;
use 
Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadataFactoryInterface;

/**
 * Responsible for resolving the arguments passed to an action.
 *
 * @author Iltar van der Berg <kjarli@gmail.com>
 */
final class ArgumentResolver implements ArgumentResolverInterface
{
    private 
$argumentMetadataFactory;

    
/**
     * @var iterable|ArgumentValueResolverInterface[]
     */
    
private $argumentValueResolvers;

    public function 
__construct(ArgumentMetadataFactoryInterface $argumentMetadataFactory nulliterable $argumentValueResolvers = [])
    {
        
$this->argumentMetadataFactory $argumentMetadataFactory ?? new ArgumentMetadataFactory();
        
$this->argumentValueResolvers $argumentValueResolvers ?: self::getDefaultArgumentValueResolvers();
    }

    
/**
     * {@inheritdoc}
     */
    
public function getArguments(Request $request, callable $controller): array
    {
        
$arguments = [];

        foreach (
$this->argumentMetadataFactory->createArgumentMetadata($controller) as $metadata) {
            foreach (
$this->argumentValueResolvers as $resolver) {
                if (!
$resolver->supports($request$metadata)) {
                    continue;
                }

                
$resolved $resolver->resolve($request$metadata);

                
$atLeastOne false;
                foreach (
$resolved as $append) {
                    
$atLeastOne true;
                    
$arguments[] = $append;
                }

                if (!
$atLeastOne) {
                    throw new 
\InvalidArgumentException(sprintf('"%s::resolve()" must yield at least one value.'get_debug_type($resolver)));
                }

                
// continue to the next controller argument
                
continue 2;
            }

            
$representative $controller;

            if (
\is_array($representative)) {
                
$representative sprintf('%s::%s()'\get_class($representative[0]), $representative[1]);
            } elseif (
\is_object($representative)) {
                
$representative \get_class($representative);
            }

            throw new 
\RuntimeException(sprintf('Controller "%s" requires that you provide a value for the "$%s" argument. Either the argument is nullable and no null value has been provided, no default value has been provided or because there is a non optional argument after this one.'$representative$metadata->getName()));
        }

        return 
$arguments;
    }

    public static function 
getDefaultArgumentValueResolvers(): iterable
    
{
        return [
            new 
RequestAttributeValueResolver(),
            new 
RequestValueResolver(),
            new 
SessionValueResolver(),
            new 
DefaultValueResolver(),
            new 
VariadicValueResolver(),
        ];
    }
}

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