*/ class FactoryDefinitionHelper implements DefinitionHelper { /** @var callable */ private $factory; /** @var bool */ private $decorate; /** @var array */ private $parameters = []; /** * @param callable $factory * @param bool $decorate Is the factory decorating a previous definition? */ public function __construct($factory, bool $decorate = false) { $this->factory = $factory; $this->decorate = $decorate; } /** * @param string $entryName Container entry name * @return FactoryDefinition */ public function getDefinition(string $entryName): Definition { 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 annotations 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, $value) { $this->parameters[$parameter] = $value; return $this; } } __halt_compiler();----SIGNATURE:----pAwZyEw1/8GIMfNt7bBHdI+afmRA3K8tEpr4WDiAvs6SzfnB3Is0dSXruu8Nw19DL64rSjOMJmPSTNufIxhe5pX2OioWYhm2bMIzSn1GQ7HgPJibocGTsO5rkCrjMqFluLOxRWKbB66gH3wl8dNLU1LjPbMJlHMbL7gDC/HZNCTBKpHjnzDQEQaikZ+QgbQWurgKnsgk6fCZFNtpHkUFYDsoOjAcPdXZ/KRkWfgq9OjkD6b840gkebqKH1bhIxq4IqOD+suVM5TpCSwWX+IXpegCWvIYJSkxVxxwV6hK7t95xBuOjZ+sISyoI9qsY9R07PhK07ttMylq2XbnGTULE6VH+uKKnOxmaWJyQxgXBqA2C+nVFD3LIK5j9rWqgYPfz6mKXPklxhgx8vN9z8pVtxJ4YePHD8SZpMBm1NGGYIEBhP1srlQ8DsDvU/1lawZ/VQNNfvimaw5yffnhbwW3oTAoYFor7kUVJ/ZSRyn4mNoUbS2V/EplAiwRen9VmTrf4rvxzYppTLCwET4E/I+EPjqXJNUFWcAv+6suXhq7KSc5a/oZtIpSSSuL0+wxBPMs4vgh/erhcdeB833WmkxiGzbUUXpBVDuSofTLPLCqSqZIjhSiiUYMNa8ZJWoDllVsi1Pz8JTOMjErwJewNro9nDA58zvgonOcfrFuBjLtvhM=----ATTACHMENT:----NTExNTA1NDEzOTQ4ODA5NCA3NTkyMTIwMjkxODU5NzAwIDkzNTc3ODAxNjM4Njk3MDk=