- Begin work on firewall

This commit is contained in:
mcndave committed 2023-11-17 23:35:56 -05:00
1 parent e78ee3a458
commit 55f5071475
4 files changed
+28 -6

No files matched your search

+11
View File
@@ -6,4 +6,15 @@ return [
getenv('DEBUG') ? 'lean.console' : null,
]
],
'ulmus' => [
'connections' => [
'lean.console' => [
'adapter' => 'SQLite',
'path' => getenv('PROJECT_PATH') . DIRECTORY_SEPARATOR . "var/lean-console.sqlite3",
'pragma_begin' => array_filter([ "foreign_keys=ON", "synchronous=NORMAL", getenv('DEBUG') ? "journal_mode=WAL" : "" ]),
'pragma_close' => [ "analysis_limit=500", "optimize" ],
],
],
],
];
+6 -2
View File
@@ -24,7 +24,11 @@ return [
],
],
'ulmus' => [],
'ulmus' => [
'entities' => [
'Lean\\Console\\Entity\\Firewall' => implode(DIRECTORY_SEPARATOR, [ $path , "src", "Entity", "Firewall" ]),
],
],
'tell' => [
'json' => [
@@ -35,7 +39,7 @@ return [
]
],
'routes' => [
'routes' => ! getenv('DEBUG') ? [] : [
'Lean\\Console\\Controller' => implode(DIRECTORY_SEPARATOR, [ $path, "src", "Controller", "" ]),
],
],
+1 -1
View File
@@ -11,7 +11,7 @@ use function DI\autowire, DI\create, DI\get;
return [
'console.adapter' => function($c) {
$adapter = new ConnectionAdapter('sqlite', $c->get('config')['ulmus'], true);
$adapter = new ConnectionAdapter('lean.console', $c->get('config')['ulmus'], false);
$adapter->resolveConfiguration();
return $adapter;