Skip to content

Commit

Permalink
Fix: loading files from dir
Browse files Browse the repository at this point in the history
  • Loading branch information
robertSt7 committed Jul 24, 2023
1 parent 8bfe60b commit cadfe61
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Configuration/DatahubConfigLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ public function locate(string $name, $params = [])
array_push($dirs, Dao::CONFIG_PATH);
}

$confDir = (string) ($_SERVER['PIMCORE_CONFIG_STORAGE_DIR_DATA_HUB'] ?? '');
if (!empty($confDir)) {
$dirs = [... $dirs, $confDir];
}

$symfonyConf = \Pimcore::getContainer()->getParameter('pimcore_data_hub');
$symfonyConfDir = $symfonyConf['config_location']['data_hub']['write_target']['options']['directory'];
if (!empty($symfonyConfDir)) {
$dirs = [... $dirs, $symfonyConfDir];
}

if (empty($dirs)) {
return [];
}
Expand Down

0 comments on commit cadfe61

Please sign in to comment.