ZF2-238: Override global configuration module


In Zend\Module\ConfigListener, the only method to override global modules configuration is :

public function addConfigGlobPath($globPath)

But the override is based on the glob() php function :

-> $config = ConfigFactory::fromFiles(glob($globPath, GLOB_BRACE))

The performance are slow with that. Why not a possibility to configure override with a static name, like addConfigGlobalFile('config/static/global.config.php') ?


I have no objections to this if you want to submit a pull request.

How i can submit a patch to this ?


Create a github account

Fork the ZF2 repo

Add your changes

Send a pull request

Thank you :)

Ok, i have created a pull request (#978) Please do not hesitate to send me feedback. Thanks.