- WIP on picea asset

This commit is contained in:
mcndave committed 2023-10-12 13:04:58 -04:00
1 parent 438b5a69c0
commit 8d22132ef5
3 files changed
+25 -5

No files matched your search

+13
View File
@@ -73,6 +73,19 @@ class Lean
return $list;
}
public function getPiceaAssets() : array
{
$list = [];
foreach(array_reverse($this->applications) as $apps) {
if ( $apps->piceaAssets ?? null ) {
$list = array_merge_recursive($list, $apps->piceaAssets);
}
}
# dump($list);
return $list;
}
public function getRoutable() : array
{
return array_merge(...array_map(fn($app) => $app->routes ?? [], $this->applications));