- Added documentation, fixed some bugs and optimized some parts of the source code while doing the doc.
This commit is contained in:
1 parent
9190987b53
commit
3986437800
33 files changed
+431
-16
No files matched your search
+6
-4
@@ -7,9 +7,10 @@ use Picea\Extension\Extension,
|
||||
|
||||
use Picea\Compiler\Context;
|
||||
|
||||
use Picea\Extension\FunctionExtension;
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
|
||||
class Form implements Extension {
|
||||
class Form implements Extension, FunctionExtension {
|
||||
use ExtensionTrait;
|
||||
|
||||
public array $tokens;
|
||||
@@ -22,14 +23,15 @@ class Form implements Extension {
|
||||
|
||||
public function __construct(ServerRequestInterface $request, Context $context) {
|
||||
$this->request = $request;
|
||||
$this->register($context);
|
||||
}
|
||||
|
||||
public function parse(\Picea\Compiler\Context &$context, ?string $arguments, string $token) : string { }
|
||||
|
||||
public function register(Context $context) : void
|
||||
public function exportFunctions(): array
|
||||
{
|
||||
$context->pushFunction("form", [ $this, 'formClass' ]);
|
||||
return [
|
||||
"form" => [ $this, 'formClass' ],
|
||||
];
|
||||
}
|
||||
|
||||
public function formClass(FormInterface $form, ? FormContext $formContext = null) : FormHandler
|
||||
|
||||
Reference in new issue
Block a user