*/ class AutowireDefinitionHelper extends CreateDefinitionHelper { const DEFINITION_CLASS = AutowireDefinition::class; /** * Defines a value for a specific argument of the constructor. * * This method is usually used together with annotations 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 annotations 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($parameter, $value) { $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 annotations 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 annotations 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, $parameter, $value) { // 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:----m1AroH964eF9jD6COmehHV9xONXNErPXcxPbOlsLp115+F01DFBEj7ID6NlpH1am5sFhtZ0rL6yCfluYr5FKC1lNVuGRlMwi/GjOjyBuqic0UgD1LU15qugEndA74xuQ7DF1CjQpayUfziMS/7dJth4GnerrfX4S1LA2oANHGDy2ob7ST7CFmDDxp0xD/4D6jCSr5IHbfzmAK4LueawWDO6qpm7D5fEGJrfLBldw56OhdH67XkrzLmh24lhPetwikrfU9N7knr4arzyMK95KbSUBfjFA1yBxBqjHoc9lP1jrVNX3NBouNbPYiek/5nW2Xw4sePJDqMnyqaDXVrNsirC5ONcDI/5+5C8UL8djsz2NRaSXvUoZLdegREdIFZj00NOWUw2YjrS80Vb+gYIDgt/WGoI69xJb1avVxoH3J+2uvWvIEKTQ5Cy/BZz4ojae2JS8h9aS3W29EXyIasLQolDPBUdiJpQo2pqyKzOJE7Gm72+7DsRfyimM7F4t9l3SBq2GmpWTsvNQkVkfutPYMgOqn95h9GxAJUNlnb/8eY+IzHuE8KiLkqyNC3QkPDKGy15E30HM/tbUkpo5vPI/ZD3XfDHvXwfcN+xAEDVRNpPB39R5VgQQbraMBzlxCjBjM7IQTvmsBw1QEwEDM6Q9YVmxparo+e6IqZ9lgAk8SqQ=----ATTACHMENT:----OTA1Mjg4MTgwNTUxODU4NCAxMzU2NDUxMzQxNzE1NDMgNzkxODcyMjIyMTczNjQwNA==