protected function doSetup($config = array())
    {
        // Catch the configuration file path
        if (isset($config[self::CONFIG_KEY_FILE_PATH])) {
            $this->configFilePath = $config[self::CONFIG_KEY_FILE_PATH];
        } else {
            // Also consider throwing an exception here instead
            // of failing silently
            return $config;
        }

        // Catch the context
        if (isset($config[ConfigInterface::KEY_CONTEXT])) {
            $this->context = $config[ConfigInterface::KEY_CONTEXT];
        }

        return $this->readConfigurationFiles();
    }
protected function doSetup($config = array())
    {
        // Catch the configuration file path
        if (isset($config[self::CONFIG_KEY_FILE_PATH])) {
            $this->configFilePath = $config[self::CONFIG_KEY_FILE_PATH];
        } else {
            // Also consider throwing an exception here instead
            // of failing silently
            return $config;
        }

        // Catch the context
        if (isset($config[ConfigInterface::KEY_CONTEXT])) {
            $this->context = $config[ConfigInterface::KEY_CONTEXT];
        }

        return $this->readConfigurationFiles();
    }
protected function doSetup ( $ config = array ( ) ) { // Catch the configuration file path if ( isset ( $ config [ self :: CONFIG_KEY_FILE_PATH ] ) ) { $ this -> configFilePath = $ config [ self :: CONFIG_KEY_FILE_PATH ] ; } else { // Also consider throwing an exception here instead // of failing silently return $ config ; } // Catch the context if ( isset ( $ config [ ConfigInterface :: KEY_CONTEXT ] ) ) { $ this -> context = $ config [ ConfigInterface :: KEY_CONTEXT ] ; } return $ this -> readConfigurationFiles ( ) ; }
Override in child if you need to override core config setup.

@param array $config
@return array
Override in child if you need to override core config setup .