ACIL FM
Dark
Refresh
Current DIR:
/opt/cpanel/ea-wappspector/vendor/php-di/php-di/src/Definition/Helper
/
opt
cpanel
ea-wappspector
vendor
php-di
php-di
src
Definition
Helper
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
AutowireDefinitionHelper.php
2.39 MB
chmod
View
DL
Edit
Rename
Delete
CreateDefinitionHelper.php
5.42 MB
chmod
View
DL
Edit
Rename
Delete
DefinitionHelper.php
361 B
chmod
View
DL
Edit
Rename
Delete
FactoryDefinitionHelper.php
1.7 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /opt/cpanel/ea-wappspector/vendor/php-di/php-di/src/Definition/Helper/FactoryDefinitionHelper.php
<?php declare(strict_types=1); namespace DI\Definition\Helper; use DI\Definition\DecoratorDefinition; use DI\Definition\FactoryDefinition; /** * Helps defining how to create an instance of a class using a factory (callable). * * @author Matthieu Napoli <matthieu@mnapoli.fr> */ class FactoryDefinitionHelper implements DefinitionHelper { /** * @var callable */ private $factory; private bool $decorate; private array $parameters = []; /** * @param bool $decorate Is the factory decorating a previous definition? */ public function __construct(callable|array|string $factory, bool $decorate = false) { $this->factory = $factory; $this->decorate = $decorate; } public function getDefinition(string $entryName) : FactoryDefinition { if ($this->decorate) { return new DecoratorDefinition($entryName, $this->factory, $this->parameters); } return new FactoryDefinition($entryName, $this->factory, $this->parameters); } /** * Defines arguments to pass to the factory. * * Because factory methods do not yet support attributes or autowiring, this method * should be used to define all parameters except the ContainerInterface and RequestedEntry. * * Multiple calls can be made to the method to override individual values. * * @param string $parameter Name or index of the parameter for which the value will be given. * @param mixed $value Value to give to this parameter. * * @return $this */ public function parameter(string $parameter, mixed $value) : self { $this->parameters[$parameter] = $value; return $this; } }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply