*/ 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:----xFJYV5a/11plCK7CridNT/xq6WZwmHL8YLkamfhnc3k2tgfRbk43zCiz6tm/aD2zrfvbk5wGYjie/hVgnEkjVvUAqpSd/UzygPTDdh10T+mQvCydc8OxTI+Tzjs2/i2pLYEcAJaWb+X3gAq8mO0cFuoZlDOiAjrX8AQuHrByMCxMonfFoyhlxoVhUnm3yM8IiRurdfoZtrp8sB4Octl7o4Xuxd1i7zOAAgXHFbjKwIGl+5kIV2oWkOQRF2kgu3NkgWq93EEmJBI3dqrRibZXhIf7tsN6xS/JUwl9osF0kHvUSf4aLIse26Cz0EfojeaDukMNzgS6Eu80vnyOCps7KsCpWqWf/BmUUEvgVNHwwzn9eoYJnxr9UBu6dXEllCxL6LTkFT2hGWbNsLc/gy+NozNWP/QYYjjoDALN+rJlKkyMGAS0t0r7aWUySKZ1eNoDgx50K32bK3XFU+S1br9kjavSB/3DDN+SU047AghElr/UrjfgCV1UqNyqBaxF+UFBlMozLJUc0lsTCKyABNHZt/q1egbQ0kQXabIehjZXXuyuzA1QA+8yAqC1L+ETyILxVOlC+uPc0rietr5FVDw7cVZnqErIusal8fTTX8dDO7tlVnICl5baxchqk98DRXAuG0/2tCsVVYu9/MIapXhMm+wOD5S+C/N82k7EabrJ108=----ATTACHMENT:----MTAwMTM0MDY4Mzg3NjMzNSA1NTkzNTM0MzgzOTgxNTYwIDE5MDUwNzQyNTgzNDY4NDg=