*/ class AutowireDefinitionHelper extends CreateDefinitionHelper { public const DEFINITION_CLASS = AutowireDefinition::class; /** * Defines a value for a specific argument of the constructor. * * This method is usually used together with attributes or autowiring, when a parameter * is not (or cannot be) type-hinted. Using this method instead of constructor() allows to * avoid defining all the parameters (letting them being resolved using attributes or autowiring) * and only define one. * * @param string|int $parameter Parameter name of position for which the value will be given. * @param mixed $value Value to give to this parameter. * * @return $this */ public function constructorParameter(string|int $parameter, mixed $value): self { $this->constructor[$parameter] = $value; return $this; } /** * Defines a method to call and a value for a specific argument. * * This method is usually used together with attributes or autowiring, when a parameter * is not (or cannot be) type-hinted. Using this method instead of method() allows to * avoid defining all the parameters (letting them being resolved using attributes or * autowiring) and only define one. * * If multiple calls to the method have been configured already (e.g. in a previous definition) * then this method only overrides the parameter for the *first* call. * * @param string $method Name of the method to call. * @param string|int $parameter Parameter name of position for which the value will be given. * @param mixed $value Value to give to this parameter. * * @return $this */ public function methodParameter(string $method, string|int $parameter, mixed $value): self { // Special case for the constructor if ($method === '__construct') { $this->constructor[$parameter] = $value; return $this; } if (! isset($this->methods[$method])) { $this->methods[$method] = [0 => []]; } $this->methods[$method][0][$parameter] = $value; return $this; } }__halt_compiler();----SIGNATURE:----lcnP+y1RC9Scccx09bYTcAxY4LZetdKrvEJWQjHQYpRe+pesoTwGqlsWeTPhmo4iN99w4Gn+GvcDyFP04efju+LgQxzip99h1pP/lagvTAzLZ5NW8VeCs/XSsAj4IS9L8tf4aedR7iz2OrPJEZ1YhzRgPVd9UMhTpV07A6gbf1RhBhIfCB7T/ZqMSGrHtkAstiEb68FxrvFhFkMG1j5OGSZkiRvdZNSFb2uwr3LzKss9GbgjHad/TpUM9rotqHeTMLATCSvj11Dg+BqnN0trpXQMrBpK+tvdm0yqbuxeV1/fb/LZGC1ml7LTJ7WViXcYIlNxC1s+geaqmb0msnPAsxeErK/5JKVOz/8MRMBfozgjoLgTH/sWQTI+P2L9Ag9GdOXNYHRJwTiHvcC+hzjzMDN990N6FYa9qfie7mazCqnEqMgvT1H/Z335AqdQyyf87/IRR83eMZ/ODkKr3c7pAV+T/RvdStE3rMgVrJiB17HWFnhGAaf8VdYxwWynd81d1JhGsdfjvIIoQvAoRfvxG+xRs4UQ2DdhrFcXI0AAxHzN//bYNhGaT7rM2iDax7oDJ8YlVwFn1JM8gHBvoa9TQ6xsCEo66aUyNBMfGnOCj1Yls3le4YmZ2ludpzaIYpVWMH/8Htrx7oNfBi7kZ3SYNzOs+Q7e8sLUAgnDYAElFzk=----ATTACHMENT:----MTczNzQ4NTg1NzgxMTk1OCAyODgyMTM0NTk3ODA0MjE5IDcyMzQyOTAzODU4ODM4MTU=