- WIP on moving config and definition loading into composer
This commit is contained in:
1 parent
2378245dbf
commit
60d4c7a900
5 files changed
+74
-2
No files matched your search
+8
-1
@@ -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") : [],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user