ZF-6244: Wrong load module controller directory from config

Description

Zend_Application_Resource_Frontcontroller::init()

            case 'controllerdirectory':
                if (is_string($value)) {
                    $front->setControllerDirectory($value);
                } elseif (is_array($value)) {
                    foreach ($value as $module => $directory) {

--> $front->setControllerDirectory($directory, $module); <-- } }

break;

Selected method replace previous defines. May be replace it to addControllerDitectory?

Comments

The front controller's setControllerDirectory() method allows passing two arguments, a directory, and the module to which it maps; if the module provided matches an existing one, it will overwrite that value.So, to prevent this, the array passed should be a set of module/directory pairs, with unique module names.