*/ 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:----zm2otsU1RNKclWc4sBdjfHUcHSXK91+9fCkEwaumTAy+QjjHzhDakbmD2r6wFD+DyLIyxKH0BzNgmhTaAIKpXKrY4wJoH9gWXZrx9nNyYGM+oTY5YKVnjHdTcjbhVl+85JFxqoEy46lB33+ezik6vWCo2p521wnLPICPGeeQBI/pWiO+m5KXKsqk4MinfeYi4Vofg7aMvbqu9yjhuiGfqjC70gNBjl9MWnlqugUY7SZaBJ8eMVSDJb8AaxHc7d0bQn/96V+QQIPbKoKO+KRpNswBaxTUtv1ESpfXuVwlSS4K/Ao0zQZ7DRcqtRzzFKJ7bS3ZARcPMU0eB2t2K/cKCnOUrmqfD1vyriV/uUaIIrA7Vyqt3l27hahyetjFS5KMQ7gXXlwcalGMW6s/SFjyHIJEmDC9yK3z0NgsMAAbsLtNno0t/hlAOydl5kbtNjBbvBHzwGH8Ftth6j38QwqdZNlpqfdT8ZpImkIfYM4NvP8MD8JbhF4/gWyyaxA3sHMXRTYIWd0RTV3wnIKig4e8zjkupOx8mIKhjSmqYkvz7Z7u69G60SwlJYZkku8qISpMI9H5MVbn0o8hYSVdNfwMI+7gEYAlB1GB+jeniLybWxzbRYL6AH29SsTjATKPPyhPytkz9juqEO0iyDdiej5PO7cNX0TiOhZi5sDpNACMePY=----ATTACHMENT:----NDE3NjY0NzQxMTc1OTM2OSA4ODI1NTgyNTMxNDQ1MDUzIDY1OTEzMjY0NDE4NzgyMTE=