- Working on CLI modules

This commit is contained in:
mcndave committed 2023-07-09 12:37:39 -04:00
1 parent 52c7407519
commit 41083c767a
10 files changed
+90 -4

No files matched your search

+6
View File
@@ -83,6 +83,11 @@ class Lean
return array_merge(...array_map(fn($app) => $app->cronard ?? [], $this->applications));
}
public function getCLI() : array
{
return array_merge(...array_map(fn($app) => $app->cli ?? [], $this->applications));
}
public function getEvents() : array
{
return array_merge(...array_map(fn($app) => $app->events ?? [], $this->applications));
@@ -128,6 +133,7 @@ class Lean
$path = dirname(__DIR__) . "/meta/definitions/";
return array_merge(
require($path . "cli.php"),
require($path . "cronard.php"),
require($path . "email.php"),
require($path . "event.php"),