protected function mergeOptions(&$config, $options)
    {
        foreach ($config as $paramName => $paramValue) {
            if (isset($options[$paramName])) {
                if (is_array($paramValue)) {
                    $config[$paramName] =  array_merge($config[$paramName], $options[$paramName]);
                } else {
                    $config[$paramName] = $options[$paramName];
                }
            }
        }

        return $config;
    }
protected function mergeOptions(&$config, $options)
    {
        foreach ($config as $paramName => $paramValue) {
            if (isset($options[$paramName])) {
                if (is_array($paramValue)) {
                    $config[$paramName] =  array_merge($config[$paramName], $options[$paramName]);
                } else {
                    $config[$paramName] = $options[$paramName];
                }
            }
        }

        return $config;
    }
protected function mergeOptions ( & $ config , $ options ) { foreach ( $ config as $ paramName => $ paramValue ) { if ( isset ( $ options [ $ paramName ] ) ) { if ( is_array ( $ paramValue ) ) { $ config [ $ paramName ] = array_merge ( $ config [ $ paramName ] , $ options [ $ paramName ] ) ; } else { $ config [ $ paramName ] = $ options [ $ paramName ] ; } } } return $ config ; }
Include on the fly generated options in the main configuration

@param array &$config Reference to the configuration
@param array $options Options

@return array Full configuration
Include on the fly generated options in the main configuration