Skip to content

Commit 0c5812f

Browse files
committed
appRepositories update
1 parent a116e25 commit 0c5812f

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

installer/Templates/ConfigEnv.php.tpl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,5 @@ $config['smtpPassword'] = '{{ smtpPassword }}';
4949
// misc
5050
$config['develMode'] = TRUE;
5151
$config['language'] = '{{ language }}';
52-
$config['enterpriseAppsRepository'] = '{{ enterpriseAppsRepository }}';
53-
$config['externalAppsRepositories'] = [
54-
'MyCompany' => __DIR__ . '/apps/external/MyCompany'
52+
$config['appRepositories'] = [
5553
];

installer/Templates/boot.php.tpl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ require_once(__DIR__ . "/ConfigEnv.php");
1313
// load autoloaders
1414
require(($config['releaseFolder'] ?? '.') . "/vendor/autoload.php");
1515

16+
if (is_array($config['appRepositories']) && count($config['appRepositories']) > 0) {
17+
foreach ($config['appRepositories'] as $appRepository) {
18+
if (is_dir($appRepository)) {
19+
require($appRepository . '/autoload.php');
20+
}
21+
}
22+
}
23+
1624
// init main class
1725
$hubleto = new \Hubleto\Erp\Loader($config);
1826
$hubleto->init();

0 commit comments

Comments
 (0)