- Added an HttpFactory and beginning the removal of old annotations from Notes

This commit is contained in:
mcndave committed 2023-11-03 16:28:31 +00:00
1 parent 7e92391113
commit 08c27e38b0
10 files changed
+143 -52

No files matched your search

+9 -2
View File
@@ -7,7 +7,7 @@ $dir = getenv("META_PATH") . "/definitions";
return array_merge(
Lean\Lean::definitions(),
Lean\Console\Lean::definitions(),
Lean\Lean::autoloadDefinitionsFromComposerExtra(),
[
'%APPKEY%' => [
@@ -38,11 +38,18 @@ return array_merge(
'%ESCAPED_NAMESPACE%\\Controller' => implode(DIRECTORY_SEPARATOR, [ getenv("PROJECT_PATH"), 'src', 'Controller', '' ]),
],
],
'app.middlewares' => [],
],
require("$dir/auth.php"),
require("$dir/storage.php"),
require("$dir/security.php"),
require("$dir/env/" . getenv('APP_ENV') . ".php"),
[ 'config' => function () { return require(getenv("META_PATH")."/config.php"); } ]
[
'config' => function () { return array_replace(
require(getenv("META_PATH")."/config.php"),
Lean\Lean::autoloadConfigFromComposerExtra(),
); }
]
);
+2 -2
View File
@@ -1,13 +1,13 @@
<?php
use function DI\autowire, DI\create, DI\get;
use Storage\Session;
use Taxus\{ Privilege, Taxus, PermissionGrantInterface, DefaultPermissionGrant };
use Psr\Http\Message\ServerRequestInterface;
use function DI\autowire, DI\create, DI\get;
return [
Taxus::class => function ($c) {
return ( new Taxus( $c->get(PermissionGrantInterface::class) ) )->add(