- Some minor adjustements, also a WIP on the @Cronard annotation has begun

This commit is contained in:
Dave Mc Nicoll committed 2021-10-19 12:38:20 +00:00
1 parent fd693fc8fc
commit f72115aab4
3 files changed
+29 -3

No files matched your search

+7 -1
View File
@@ -14,6 +14,8 @@ class Application
public array $routes;
public array $cronard;
public array $entities;
public array $tellJson;
@@ -52,10 +54,14 @@ class Application
}
}
if (is_array($routes = $data['routes'] ?? false)) {
if (is_array($data['routes'] ?? false)) {
$this->routes = $data['routes'];
}
if (is_array($data['cronard'] ?? false)) {
$this->cronard = $data['cronard'];
}
return $this;
}
}
+5
View File
@@ -67,6 +67,11 @@ class Lean
return array_merge(...array_map(fn($app) => $app->routes ?? [], $this->applications));
}
public function getCronard() : array
{
return array_merge(...array_map(fn($app) => $app->cronard ?? [], $this->applications));
}
public function getEntities() : array
{
return array_merge(...array_map(fn($app) => $app->entities ?? [], $this->applications));