- New code generation made for CLI

This commit is contained in:
mcndave committed 2026-01-05 12:39:41 +00:00
1 parent ae212a4377
commit c3e3d6a73a
22 files changed
+1067 -17

No files matched your search

+7
View File
@@ -10,12 +10,19 @@ use Ulmus\EntityCollection;
abstract class Form
{
protected string $contextClass;
public function __construct(
protected LanguageHandler $languageHandler,
protected MessageFactoryInterface $message,
# public EntityInterface $entity,
) {}
public function validate(FormContextInterface $context) : bool
{
return $context->valid($this->getEntity()->isLoaded() ? $this->getEntity() : null);
}
public function initialize(FormContextInterface $context) : void
{
if(isset($this->contextClass) && ! $context instanceof $this->contextClass ) {