protected function normalizeConfig(array $config)
    {
        foreach ($this->configModel as $elmt => $settings) {
            if (!isset($config[$elmt])) {
                $config[$elmt] = $settings['default'];
            }
        }

        foreach ($config as $elmtName => $value) {
            if (!isset($this->configModel[$elmtName])) {
                unset($config[$elmtName]);
            }
        }

        return $config;
    }
protected function normalizeConfig(array $config)
    {
        foreach ($this->configModel as $elmt => $settings) {
            if (!isset($config[$elmt])) {
                $config[$elmt] = $settings['default'];
            }
        }

        foreach ($config as $elmtName => $value) {
            if (!isset($this->configModel[$elmtName])) {
                unset($config[$elmtName]);
            }
        }

        return $config;
    }
protected function normalizeConfig ( array $ config ) { foreach ( $ this -> configModel as $ elmt => $ settings ) { if ( ! isset ( $ config [ $ elmt ] ) ) { $ config [ $ elmt ] = $ settings [ 'default' ] ; } } foreach ( $ config as $ elmtName => $ value ) { if ( ! isset ( $ this -> configModel [ $ elmtName ] ) ) { unset ( $ config [ $ elmtName ] ) ; } } return $ config ; }
Format an array of configurations with the model

@param array $config Base configurations

@return array Formated configurations
Format an array of configurations with the model