*/ 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; } }__halt_compiler();----SIGNATURE:----kaEDEBxcyffDZfqCVEr79qzy1XgfKzC5sNlV9DQc+rh/s7NoUrqFi4bWEB828vjYKvzmOe/HydqANUk1TioUNvAXuXcrDsn1bIepsLwTpEAdLa+ukL5xv8IyaysUY4mkw6Qmgfy8MR6P2KdjBmSqMxuQh2dl6yF4TOZj6dCkKaxC1ZLSVnx2+kRjNUiLsiCCMNchWFG2W5qdI4p0SZ4h9uhuuSRnmfB6tqhwYfVDlk8N1LG/ayGvMd5h99X9785HehO2JfRqoz0KjJqkEcOuTz848s3i+/Zz5Lhm+JVHjGGMQoo7lyZypZ8PL8BahJvONbO2zVOSm2WUJMukAqYoTVov+CpC9JtXX3zN+7oEmEuCxZncferfPlcS9TXfYFPX8sQWoaQUnPOce5hdqzn7LNPwikkDEQUEBDi10+SAQl4kySs2cqAeVif4RxO2wvHgZBUr6xZr+80+PSyostVZAA88DlufPpFcAFp6XkzbR4VQgZV3zpD1tiacZ3J1DQfuAvqUci8GcGkRPqf9ce5ggzmqfCZa280DjXVawL34p14OpXJpQ61Gq1RNXN8nVh12wZolzX8ggng17sNskj7yzMntXWrx066lJ5T4MqpD8vGnBk11acprfWLgkp7HBMyaxDM1oSEiHDxO21S8XooBx9xzAsN0yrXhDBpW4wrx/qE=----ATTACHMENT:----NTk3NzQ5MDMyMDQ1NjkwOSA4Nzg2NDM2NjUwNDIxMTQ4IDMxMTQyMjQ4NjI3MDI2Nw==