*/ 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:----TPzLEZH4FSRc7K4mkenwO5cn53g/9ZBA5AXwmP/+ulg9fqQIwilo9h0ZIU9RJ5ji5bVmVMMLGKFojFlz5eVxnArNrSJwlOVGsSBM8yEQztRE3ztPQHkFTG2KazsImckhQt/aaSyGhC/L3E20xec3jcV/RKGyCJkJKzIIdmyEJ0eitfclcHBkobdeK5IFZSZuvpzbJvC3XXG5CT5iUhDDtBdI/NYs71aAHHdfuZFFrbZ0ktHNXmGDLVwfzV/IoVOWvhDkPscYrZOO7qGUNiB3pVQ9Zo8gDW6o1oREuauw6Hs+WHS6Aosz10IFEt3XqygZ1fld5zChX0SYJ9RQ5ODRGooKU6OY3oTWeWt1n1oRhWWKUZ4+1Zjn7PAIr5gKVUljzEAvnDAGeJneSQuuE5jbNRTCTmio7j/hWhQZS7I/Lc754gJVzp7Qf7Mof87AdpNnaMMDu01h1vr1ozJMnp/K2ZYE7gnTu/3w0TLEAhWI9bopZdUb+lC0NzvqosqGo6Vn6rYmo4bvC/lyDwzZk4tt8Qyen8WtPJxwekvgL04waNZjKV2toLyKWMbTshF4v9vt9Sgg2M366o0On+v2lLG0BsMbRL87TV5tyqWlNZ6gP/M3HWelOytOjekTICz/UJydUA6LESOnfCu6o/9rSQakc1H+UtuqJgqFzJ6QIhBGcLM=----ATTACHMENT:----Njk3NDQxNDkwMTUxMDkyNiA5NTE0MjAzMzQ4ODM3NzQ0IDE3MzgxMTQ2NjEyMDc3MDA=