- New code generation made for CLI
This commit is contained in:
1 parent
ae212a4377
commit
c3e3d6a73a
22 files changed
+1067
-17
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace %NAMESPACE%\%FORM_NS%;
|
||||
|
||||
use Lean\Api\Attribute\ContextField;
|
||||
use %NAMESPACE%\{ %USE_ENTITY_NS% };
|
||||
|
||||
#[ContextField]
|
||||
class %SAVE_FORM_CONTEXT_CLASSNAME% extends \Lean\Api\Lib\FormContext
|
||||
{
|
||||
# #[ContextField]
|
||||
# public string $name;
|
||||
|
||||
public function valid(? %ENTITY_NS%\%CLASSNAME% $entity = null) : bool
|
||||
{
|
||||
return parent::valid();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user