Basic functionality
This commit is contained in:
23
app/ui/Form/FormFactory.php
Executable file
23
app/ui/Form/FormFactory.php
Executable file
@@ -0,0 +1,23 @@
|
||||
<?php declare(strict_types = 1);
|
||||
|
||||
namespace App\UI\Form;
|
||||
|
||||
final class FormFactory
|
||||
{
|
||||
|
||||
private function create(): BaseForm
|
||||
{
|
||||
return new BaseForm();
|
||||
}
|
||||
|
||||
public function forFrontend(): BaseForm
|
||||
{
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function forBackend(): BaseForm
|
||||
{
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user