- WIP on skeleton
This commit is contained in:
1 parent
d74c916558
commit
a4b02607f3
7 files changed
+77
-27
No files matched your search
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace %NAMESPACE%\Lib;
|
||||
|
||||
use Picea\Picea;
|
||||
use Storage\Session;
|
||||
use Mcnd\Event\EventManager;
|
||||
use Notes\{ Attribute\Ignore, Route\Attribute\Object\Route, Security\Attribute\Security };
|
||||
use Ulmus\User\Entity\{ User, UserInterface };
|
||||
|
||||
use %NAMESPACE%\{ Entity, Lib, Form, Factory };
|
||||
|
||||
#[Security(locked: false)]
|
||||
#[Route(base: "/api", method: [ "GET", "POST", "PUT", "PATCH", "DELETE", ])]
|
||||
trait ApiTrait {
|
||||
use \Lean\ControllerTrait, \Lean\Api\LeanApiTrait {
|
||||
\Lean\Api\LeanApiTrait::renderMarkdown insteadof \Lean\ControllerTrait;
|
||||
}
|
||||
|
||||
#[Ignore]
|
||||
public UserInterface $user;
|
||||
|
||||
#[Ignore]
|
||||
protected EventManager $eventManager;
|
||||
|
||||
#[Ignore]
|
||||
protected Factory\FormFactoryInterface $formFactory;
|
||||
}
|
||||
Reference in new issue
Block a user