- Added AdapterProxy autoload in ORM
This commit is contained in:
1 parent
69382f912b
commit
42f33d9f13
11 files changed
+76
-42
No files matched your search
+15
-10
@@ -77,37 +77,42 @@ class Lean
|
||||
|
||||
public function getRoutable() : array
|
||||
{
|
||||
return array_merge(...array_map(fn($app) => $app->routes ?? [], $this->applications));
|
||||
return array_merge(...array_map(fn(Application $app) => $app->routes ?? [], $this->applications));
|
||||
}
|
||||
|
||||
public function getCronard() : array
|
||||
{
|
||||
return array_merge(...array_map(fn($app) => $app->cronard ?? [], $this->applications));
|
||||
return array_merge(...array_map(fn(Application $app) => $app->cronard ?? [], $this->applications));
|
||||
}
|
||||
|
||||
public function getCLI() : array
|
||||
{
|
||||
return array_merge(...array_map(fn($app) => $app->cli ?? [], $this->applications));
|
||||
return array_merge(...array_map(fn(Application $app) => $app->cli ?? [], $this->applications));
|
||||
}
|
||||
|
||||
public function getEvents() : array
|
||||
{
|
||||
return array_merge(...array_map(fn($app) => $app->events ?? [], $this->applications));
|
||||
return array_merge(...array_map(fn(Application $app) => $app->events ?? [], $this->applications));
|
||||
}
|
||||
|
||||
public function getTaxusPrivileges() : array
|
||||
{
|
||||
return array_merge(...array_map(fn($app) => $app->taxus ?? [], $this->applications));
|
||||
return array_merge(...array_map(fn(Application $app) => $app->taxus ?? [], $this->applications));
|
||||
}
|
||||
|
||||
public function getEntities() : array
|
||||
{
|
||||
return array_merge(...array_map(fn($app) => $app->entities ?? [], $this->applications));
|
||||
return array_merge(...array_map(fn(Application $app) => $app->entities ?? [], $this->applications));
|
||||
}
|
||||
|
||||
public function getConnectionAdapters() : array
|
||||
{
|
||||
return array_merge(...array_map(fn(Application $app) => $app->connectionAdapters ?? [], $this->applications));
|
||||
}
|
||||
|
||||
public function getViewPaths() : array
|
||||
{
|
||||
$list = array_merge(...array_map(fn($app) => $app->views ?? [], $this->applications));
|
||||
$list = array_merge(...array_map(fn(Application $app) => $app->views ?? [], $this->applications));
|
||||
|
||||
$this->verifyPathList($list);
|
||||
|
||||
@@ -118,7 +123,7 @@ class Lean
|
||||
|
||||
public function getAssetPaths() : array
|
||||
{
|
||||
$list = array_merge(...array_map(fn($app) => $app->piceaAssets ?? [], $this->applications));
|
||||
$list = array_merge(...array_map(fn(Application $app) => $app->piceaAssets ?? [], $this->applications));
|
||||
|
||||
$this->verifyPathList($list);
|
||||
|
||||
@@ -140,11 +145,11 @@ class Lean
|
||||
{
|
||||
switch($reader) {
|
||||
case "php":
|
||||
$list = array_merge(...array_map(fn($app) => $app->tellPhp ?? [], $this->applications));
|
||||
$list = array_merge(...array_map(fn(Application $app) => $app->tellPhp ?? [], $this->applications));
|
||||
break;
|
||||
|
||||
case "json":
|
||||
$list = array_merge(...array_map(fn($app) => $app->tellJson ?? [], $this->applications));
|
||||
$list = array_merge(...array_map(fn(Application $app) => $app->tellJson ?? [], $this->applications));
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user