- Work done on Form handling
This commit is contained in:
1 parent
a8a99f1852
commit
e4b4cdb818
4 files changed
+6
-6
No files matched your search
+1
-3
@@ -32,8 +32,6 @@ class Form implements Extension {
|
||||
$this->formContext = new FormContext($this->request);
|
||||
|
||||
$context->pushFunction("form", [ $this, 'formClass' ]);
|
||||
|
||||
#$context->
|
||||
}
|
||||
|
||||
public function form_csrf(string $field, string $value) {
|
||||
@@ -52,7 +50,7 @@ class Form implements Extension {
|
||||
return $value;
|
||||
}
|
||||
|
||||
public function formClass(FormInterface $form, ? FormContext $formContext = null)
|
||||
public function formClass(FormInterface $form, ? FormContext $formContext = null) : FormHandler
|
||||
{
|
||||
return new FormHandler($this->request, $form, $formContext ?: $this->formContext);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user