- Added CSRF through form processing

This commit is contained in:
Dave Mc Nicoll committed 2022-02-25 15:33:40 +00:00
1 parent 97f1f67af1
commit 83fee32ac0
4 files changed
+31 -31

No files matched your search

+1 -1
View File
@@ -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);
}
}