!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/var/softaculous/sitepad/editor/site-data/plugins/kkart-pro/vendor/league/container/src/Argument/   drwxr-xr-x
Free 292.5 GB of 429.69 GB (68.07%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ArgumentResolverTrait.php (3.58 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php declare(strict_types=1);

namespace 
Automattic\Kkart\Vendor\League\Container\Argument;

use 
Automattic\Kkart\Vendor\League\Container\Container;
use 
Automattic\Kkart\Vendor\League\Container\Exception\{ContainerExceptionNotFoundException};
use 
Automattic\Kkart\Vendor\League\Container\ReflectionContainer;
use 
Psr\Container\ContainerInterface;
use 
ReflectionFunctionAbstract;
use 
ReflectionParameter;

trait 
ArgumentResolverTrait
{
    
/**
     * {@inheritdoc}
     */
    
public function resolveArguments(array $arguments) : array
    {
        return 
array_map(function ($argument) {
            
$justStringValue false;

            if (
$argument instanceof RawArgumentInterface) {
                return 
$argument->getValue();
            } elseif (
$argument instanceof ClassNameInterface) {
                
$id $argument->getClassName();
            } elseif (!
is_string($argument)) {
                return 
$argument;
            } else {
                
$justStringValue true;
                
$id $argument;
            }

            
$container null;

            try {
                
$container $this->getLeagueContainer();
            } catch (
ContainerException $e) {
                if (
$this instanceof ReflectionContainer) {
                    
$container $this;
                }
            }

            if (
$container !== null) {
                try {
                    return 
$container->get($id);
                } catch (
NotFoundException $exception) {
                    if (
$argument instanceof ClassNameWithOptionalValue) {
                        return 
$argument->getOptionalValue();
                    }

                    if (
$justStringValue) {
                        return 
$id;
                    }

                    throw 
$exception;
                }
            }

            if (
$argument instanceof ClassNameWithOptionalValue) {
                return 
$argument->getOptionalValue();
            }

            
// Just a string value.
            
return $id;
        }, 
$arguments);
    }

    
/**
     * {@inheritdoc}
     */
    
public function reflectArguments(ReflectionFunctionAbstract $method, array $args = []) : array
    {
        
$arguments array_map(function (ReflectionParameter $param) use ($method$args) {
            
$name $param->getName();
            
$type $param->getType();

            if (
array_key_exists($name$args)) {
                return new 
RawArgument($args[$name]);
            }

            if (
$type) {
                if (
PHP_VERSION_ID >= 70200) {
                    
$typeName $type->getName();
                } else {
                    
$typeName = (string) $type;
                }

                
$typeName ltrim($typeName'?');

                if (
$param->isDefaultValueAvailable()) {
                    return new 
ClassNameWithOptionalValue($typeName$param->getDefaultValue());
                }

                return new 
ClassName($typeName);
            }

            if (
$param->isDefaultValueAvailable()) {
                return new 
RawArgument($param->getDefaultValue());
            }

            throw new 
NotFoundException(sprintf(
                
'Unable to resolve a value for parameter (%s) in the function/method (%s)',
                
$name,
                
$method->getName()
            ));
        }, 
$method->getParameters());

        return 
$this->resolveArguments($arguments);
    }

    
/**
     * @return ContainerInterface
     */
    
abstract public function getContainer() : ContainerInterface;

    
/**
     * @return Container
     */
    
abstract public function getLeagueContainer() : Container;
}

:: 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 KaizenLouie | C99Shell Github | Generation time: 0.0042 ]--