*/ 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:----LLDvxtdUQ+rP/3qgedjBFZYovhIp8nwd5OQcmzW9nxac+DczQjIMsrMZaVK8NdtzcfuH7UZZcOCZu1FsLjf+O0yQ1bKS7jxssCCi3nx4Q0TwMJ5+aHp7Ih5+R0Q2jweOmSwH+ST5BTEHP21yyA7HjeLjFGDNZ5MmjiYtIdnfFDl4Dz3HWDVZpwdFqFH8J6rCm+hT/IdIsqyXvwQSmGAPq/SM7XkoxYLuQscTAdvfvoM038bnFtiLajeI9J21q+wtuWUUWKQCQZf9FPc0G/CV5Vtw0WxPLoxVzzWwNTrR+kjczJfyF+bp0V5hqoyWqmUKGydIPhX/2RPfkSXI38w0liQXzEsuMyvvMqGx77YJVsQbSnZDPtqHFCkh6aLHZ0hKX86u9OVUpUp8++m23DVJwq9J8w2Y33Ysb1ltdo1umHq740jhpizo/T/revyraVmlUu6w0emrZSNiErk0yjbuy8/wQIUJLlhcOeSqFMTIvk2ezZXxkhproha2apj2lrO/Jt3T/9sfW/OxJLN+PPthnIDv9tQWgKnls8/1NNtgHHk35boknPcUpPO+t9oBC+bCGtaLwuSdA0VPYq0So1KKqOuATj27TDXP3Az0QqWe+GZ9J+FhAKA9r7QB3umfgZ/OcfwyZJTHAwOu7CWU7UUS8W3fbBioXWzEs+R6dBgBGOE=----ATTACHMENT:----NDkxNTI4NzU2MjEyNjQ1MSA4MDYyMDg3NjI1OTk3ODg4IDg0ODQ2MjUwMzY0ODU4NTE=