- WIP on moving config and definition loading into composer

This commit is contained in:
mcndave committed 2023-11-15 19:10:30 -05:00
1 parent 2378245dbf
commit 60d4c7a900
5 files changed
+74 -2

No files matched your search

+8 -1
View File
@@ -93,6 +93,11 @@ class Lean
return array_merge(...array_map(fn($app) => $app->events ?? [], $this->applications));
}
public function getTaxusPrivileges() : array
{
return array_merge(...array_map(fn($app) => $app->taxus ?? [], $this->applications));
}
public function getEntities() : array
{
return array_merge(...array_map(fn($app) => $app->entities ?? [], $this->applications));
@@ -152,6 +157,8 @@ class Lean
public static function definitions() : array
{
return [];
$path = dirname(__DIR__) . "/meta/definitions/";
return array_replace(
@@ -164,8 +171,8 @@ class Lean
require($path . "language.php"),
class_exists(\Negundo\Client\NegundoMiddleware::class) ? require($path . "negundo.php") : [],
require($path . "routes.php"),
# require($path . "security.php"),
require($path . "software.php"),
require($path . "storage.php"),
class_exists(\Picea\Picea::class) ? require($path . "template.php") : [],
);
}