- Added CSRF through form processing
This commit is contained in:
1 parent
97f1f67af1
commit
83fee32ac0
4 files changed
+31
-31
No files matched your search
+1
-1
@@ -34,6 +34,6 @@ class Form implements Extension {
|
||||
|
||||
public function formClass(FormInterface $form, ? FormContext $formContext = null) : FormHandler
|
||||
{
|
||||
return new FormHandler($this->request, $form, $formContext);
|
||||
return new FormHandler($formContext ? $formContext->request : $this->request, $form, $formContext);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user