- WIP on leaning lean a bit
This commit is contained in:
1 parent
4f648b47bd
commit
f3c4cbd95a
13 files changed
+41
-180
No files matched your search
@@ -1,12 +1,12 @@
|
||||
<?php
|
||||
|
||||
use Taxus\Privilege;
|
||||
|
||||
use function DI\autowire, DI\create, DI\get;
|
||||
|
||||
$dir = getenv("META_PATH") . "/definitions";
|
||||
|
||||
return array_merge(
|
||||
Lean\Lean::definitions(),
|
||||
|
||||
Lean\Lean::autoloadDefinitionsFromComposerExtra(),
|
||||
|
||||
[
|
||||
@@ -15,7 +15,6 @@ return array_merge(
|
||||
'context' => "%ESCAPED_NAMESPACE%\\View",
|
||||
'asset' => [],
|
||||
'extensions' => [],
|
||||
|
||||
],
|
||||
|
||||
'ulmus' => [
|
||||
@@ -37,6 +36,13 @@ return array_merge(
|
||||
'cli' => [
|
||||
'%ESCAPED_NAMESPACE%\\Controller' => implode(DIRECTORY_SEPARATOR, [ getenv("PROJECT_PATH"), 'src', 'Controller', '' ]),
|
||||
],
|
||||
|
||||
'taxus' => [
|
||||
[ new Privilege("dev", "Is a developper of this application."), "is_dev" ],
|
||||
[ new Privilege("admin", "Can manage mostly everything from this application."), "is_admin" ],
|
||||
[ new Privilege("user", "Is an authenticated user."), "is_user" ],
|
||||
[ new Privilege("anonymous", "Is an anonymous (unauthenticated) user."), "is_anonymous" ],
|
||||
]
|
||||
],
|
||||
|
||||
'app.middlewares' => [],
|
||||
|
||||
Reference in new issue
Block a user