- Some minor adjustements, also a WIP on the @Cronard annotation has begun
This commit is contained in:
1 parent
fd693fc8fc
commit
f72115aab4
3 files changed
+29
-3
No files matched your search
+7
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user