On 3 December 2014 at 19:42, Nima Sadjadi <[email protected]> wrote:

> Sorry, i didn't understand the last part of your message. Do you mean the
> db auth credentials are in the same location and I was wrong thinking it
> requires two files? Or do you mean you are agree that this is better to be
> in the same location? Sorry for my bad English. Please clarify.
>

In ZF2, the config merging is as following (pseudo code):

$configChunks = [];

foreach ($modules as $module) {
    $configChunks[] = $module->getConfig();
}

foreach (glob('config/autoload/*.php') as $configFile) {
    $configChunks[] = require 'config/autoload/' . $configFile;
}

$appConfig = array_merge(...$configs);

Therefore, configs in 'config/autoload/*' are the last ones being loaded,
and that's where you put app-specific customizations.

Module contents should never ever be modified.

Please read up on this on the ZF2 docs before asking further here:
http://framework.zend.com/manual/2.3/en/user-guide/overview.html

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to