Skip to content

Commit 6e87ef5

Browse files
committed
minor #302 [LiveComponent] Remove @internal from extractFormValues and clearErrorsForNonValidatedFields (norkunas)
This PR was merged into the 2.x branch. Discussion ---------- [LiveComponent] Remove ``@internal`` from `extractFormValues` and `clearErrorsForNonValidatedFields` | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Tickets | symfony/ux-live-component@a930f1e#r69159680 | License | MIT In a multistep form live component, it's not enough for me just to use `ComponentWithFormTrait`, so I have some custom actions which are used instead of just submitting the form and these actions partially duplicates the functionality of `submitForm` which uses these methods that are marked as ``@internal`` Commits ------- 01d6a72 [LiveComponent] Remove ``@internal`` from `extractFormValues` and `clearErrorsForNonValidatedFields`
2 parents 3b6e751 + 01d6a72 commit 6e87ef5

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/LiveComponent/src/ComponentWithFormTrait.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,6 @@ private function getFormInstance(): FormInterface
183183
* This is used to pass the initial values into the live component's
184184
* frontend, and it's meant to equal the raw POST data that would
185185
* be sent if the form were submitted without modification.
186-
*
187-
* @internal
188186
*/
189187
private function extractFormValues(FormView $formView): array
190188
{
@@ -215,9 +213,6 @@ private function extractFormValues(FormView $formView): array
215213
return $values;
216214
}
217215

218-
/**
219-
* @internal
220-
*/
221216
private function clearErrorsForNonValidatedFields(FormInterface $form, string $currentPath = ''): void
222217
{
223218
if ($form instanceof ClearableErrorsInterface && (!$currentPath || !\in_array($currentPath, $this->validatedFields, true))) {

0 commit comments

Comments
 (0)