*/ 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:----XisjzbXyy/8k/mVpBHiDQKSJWthJnjIIi88RvTMoBztBMAr/FDs5V6uo2HTFUByj3ztXfFStaBJNLzWDtxCoZbxhszzURlQYIBY76kBOEbI7O8noltKrBcQXM/O1RU2MkUq8OLW/j7LTiLDNQyk+GMSqX9gsUJCgKnF6/VCekd5xPGRbZmEyReGXlF8gTfCsL7cI4HGdMWc3DX9rSCpM8pV1uHiNq3j+NPSAWEW3wGR0fWx9Hsoab50KXeq1umLORehJvsZsO7KiPNEKGROsT1l+NMO3r1O1w3zY15C1fVQBZtPW2uR1M87THsiil3By0CF5HyIIqZrKiOLToCsFhvm7Hm6cSaKAiRhrBamsMLQZ4oEMfAt1bYoZPb42OJm0Xji1j0zIuZPibgt0/tFDhGhGrfLH6OJJXkSeSd+d/7iDwvWq6yfreR+dC6VwspdWVIwaT+SCWCa91GeJRP/ojNovZ6wEokAqScVS771qp386R1sLmxW4HNOQD+INGgGIW1LJVJ/APcOwOqLFaLJGKDXzmGsTDmQPNErFpiBl2JJ2sWNt3wmVvQ7yt+xrq4lUzuX3A7sXHSgZa3TOMxBH36vxZwZcpcJCtcCUfQbMIhv0UibU+1/BP0MV0xtHi6W3jVA9dexY+9ILhDgusQp/6xUoUzCt14a9he+oqvHX17M=----ATTACHMENT:----NDM4NzgwNjY1ODcyNTA4IDQyMTIwNjcyMzI2NjEwNDYgNTM2MTkzMTAzMzEwNzY4Ng==