We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be76e08 commit 3cbb465Copy full SHA for 3cbb465
ux.symfony.com/src/Twig/RegistrationForm.php
@@ -29,7 +29,7 @@ protected function instantiateForm(): FormInterface
29
30
public function hasValidationErrors(): bool
31
{
32
- return $this->getFormInstance()->isSubmitted() && !$this->getFormInstance()->isValid();
+ return $this->getForm()->isSubmitted() && !$this->getForm()->isValid();
33
}
34
35
#[LiveAction]
@@ -42,7 +42,7 @@ public function saveRegistration()
42
// to a normal controller: that's even better.
43
// $newUser = $this->getFormInstance()->getData();
44
45
- $this->newUserEmail = $this->getFormInstance()
+ $this->newUserEmail = $this->getForm()
46
->get('email')
47
->getData();
48
$this->isSuccessful = true;
0 commit comments