zendframework/zf2 — pull request #2390 by prolic (2012-09-19 19:39:57+00:00)
Title: 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 I can merge together a part of config file from "getConfig()" with the return value of a custom provider method.