mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Miglioramenti minori
This commit is contained in:
15
core.php
15
core.php
@@ -281,3 +281,18 @@ $list = array_merge($files, $custom_files);
|
||||
foreach ($list as $file) {
|
||||
include_once $file;
|
||||
}
|
||||
|
||||
// Inclusione dei file vendor/autoload.php di Composer
|
||||
$files = glob(__DIR__.'/{modules,plugins}/*/vendor/autoload.php', GLOB_BRACE);
|
||||
$custom_files = glob(__DIR__.'/{modules,plugins}/*/custom/vendor/autoload.php', GLOB_BRACE);
|
||||
foreach ($custom_files as $key => $value) {
|
||||
$index = array_search(str_replace('custom/', '', $value), $files);
|
||||
if ($index !== false) {
|
||||
unset($files[$index]);
|
||||
}
|
||||
}
|
||||
|
||||
$list = array_merge($files, $custom_files);
|
||||
foreach ($list as $file) {
|
||||
include_once $file;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user