@@ -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 | } |
@@ -31,7 +31,9 @@ |
||
| 31 | 31 | |
| 32 | 32 | public static function forForm($form) |
| 33 | 33 | { |
| 34 | - $consumer = GetConsumerForForm::for($form)->handle(); |
|
| 34 | + $consumer = GetConsumerForForm::for($form) { |
|
| 35 | + ->handle(); |
|
| 36 | + } |
|
| 35 | 37 | |
| 36 | 38 | return self::forConsumer($consumer); |
| 37 | 39 | } |
@@ -36,7 +36,9 @@ |
||
| 36 | 36 | $action = new static($fieldList); |
| 37 | 37 | $action->setForm($form); |
| 38 | 38 | $action->setConsumerGenerateCallback(function () use ($form) { |
| 39 | - return GetConsumerForForm::for($form)->handle(); |
|
| 39 | + return GetConsumerForForm::for($form) { |
|
| 40 | + ->handle(); |
|
| 41 | + } |
|
| 40 | 42 | }); |
| 41 | 43 | |
| 42 | 44 | $action->setConsumerConfigGenerateCallback(function () use ($action) { |