Please sign in to comment.
Expose formally protected method in ConfigListener
I made the "hasCachedConfig()" method public and added it to ConfigMergerInterface. The reason for this is, sometimes it's useful to know, whether or not the config object is already merged and cached or not. F.e. when I allow a method like: "getPHPUnitPaths()" in a module with an PHPUnitProviderInterface, and the return value should get merged into the config file this would lead to bugs, because the order of the modules is not correctly applied any more. Therefore I need to know, whether the work is already done and therefore I know, I can skip at this point. Otherwise it will merge together a part of config file from "getConfig()" with the return value of a custom provider method.
- Loading branch information...
Showing with 22 additions and 13 deletions.