- WIP on picea asset
This commit is contained in:
1 parent
438b5a69c0
commit
8d22132ef5
3 files changed
+25
-5
No files matched your search
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user