@@ -30,7 +30,9 @@ |
||
| 30 | 30 | { |
| 31 | 31 | $action = new static($fieldList); |
| 32 | 32 | $action->setForm($form); |
| 33 | - $action->setConsumer(GetConsumerForForm::for($form)->handle()); |
|
| 33 | + $action->setConsumer(GetConsumerForForm::for($form) { |
|
| 34 | + ->handle()); |
|
| 35 | + } |
|
| 34 | 36 | |
| 35 | 37 | return $action; |
| 36 | 38 | } |
@@ -36,7 +36,9 @@ |
||
| 36 | 36 | public static function forForm(Form $form, $fieldsCollection = null): static |
| 37 | 37 | { |
| 38 | 38 | $action = new static($form, $fieldsCollection); |
| 39 | - $action->setConsumer(GetConsumerForForm::for($form)->handle()); |
|
| 39 | + $action->setConsumer(GetConsumerForForm::for($form) { |
|
| 40 | + ->handle()); |
|
| 41 | + } |
|
| 40 | 42 | |
| 41 | 43 | return $action; |
| 42 | 44 | } |