diff --git a/Resources/doc/changelogs/CHANGELOG-3.x.md b/Resources/doc/changelogs/CHANGELOG-3.x.md index fb887fd..9c309d7 100644 --- a/Resources/doc/changelogs/CHANGELOG-3.x.md +++ b/Resources/doc/changelogs/CHANGELOG-3.x.md @@ -1,6 +1,6 @@ # CJW-Network ConfigProcessor Bundle 3.x changelog -## 3.0.1 (xx.12.2020) +## 3.0.1 (23.12.2020) * Fixed an issue with difference highlighting: When the state was saved in the url, the highlighting would trigger immediately before any other JS had loaded which caused @@ -24,6 +24,12 @@ cut badly (it was tried to cut the project directory out of the path which didn't feature the directory), leading to false paths in the frontend. +* Fixed an issue with config path retrieval for bundles outside the vendor directory, + where the general config directory would be found and added to the list of custom paths, + leading to immense loading times and endless loops of configuration, which would often amount + to an error + + ## 3.0 (11.12.2020) * This changelog has been created to ship with the first full version of the bundle diff --git a/src/LocationAwareConfigLoadBundle/ConfigPathUtility.php b/src/LocationAwareConfigLoadBundle/ConfigPathUtility.php index 24a248b..a7dd14c 100644 --- a/src/LocationAwareConfigLoadBundle/ConfigPathUtility.php +++ b/src/LocationAwareConfigLoadBundle/ConfigPathUtility.php @@ -116,8 +116,7 @@ public static function convertExtensionPathToConfigDirectory(string $extensionPa if (file_exists($configDirPath.DIRECTORY_SEPARATOR."Resources".DIRECTORY_SEPARATOR."config")) { $configDirPath = $configDirPath.DIRECTORY_SEPARATOR."Resources".DIRECTORY_SEPARATOR."config".DIRECTORY_SEPARATOR; break; - } else if (file_exists($configDirPath.DIRECTORY_SEPARATOR."config")) { - $configDirPath = $configDirPath.DIRECTORY_SEPARATOR."config".DIRECTORY_SEPARATOR; + } else if (file_exists($configDirPath.DIRECTORY_SEPARATOR."composer.json")) { break; }