- Added getRequest() method to replace direct property access
This commit is contained in:
1 parent
a34ebaf0df
commit
33e77b5129
3 files changed
+60
-30
No files matched your search
+1
-1
@@ -36,6 +36,6 @@ class Form implements Extension, FunctionExtension {
|
||||
|
||||
public function formClass(FormInterface $form, ? FormContext $formContext = null) : FormHandler
|
||||
{
|
||||
return new FormHandler($formContext ? $formContext->request : $this->request, $form, $formContext);
|
||||
return new FormHandler($formContext ? $formContext->getRequest() : $this->request, $form, $formContext);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user