Get the config

This function will lazy create a config object is one does not exist yet.

@return ObjectConfig
974619
public function getConfig()
    {
        if(!$this->_config instanceof ObjectConfig) {
            $this->_config = new ObjectConfig($this->__config);
        }

        return $this->_config;
    }
895833
public static function getInstance() :Config
    {
        if (is_null(Config::$selfInstance) || !Config::$selfInstance instanceof Config) {
            Config::$selfInstance = new Config();
        }
        return Config::$selfInstance;
    }
419300
protected static function _getConfig() {

		$sConfig = get_called_class();

		$aConfig =& static::$_lConfig[$sConfig];
		if ($aConfig) {
			return $aConfig;
		}

		$aConfigFull = Config::get('mongo');

		$aGet =& $aConfigFull['server'][$sConfig];
		if (!is_array($aGet)) {
			throw new TangoException('mongo server config "' . $sConfig . '"');
		}

		$aGet += $aConfigFull['default'];

		$sCustom =& $aGet['custom'];
		if ($sCustom && is_string($sCustom)) {

			$aCustom =& $aConfigFull['custom'][$sCustom];

			if (!is_array($aCustom)) {
				throw new TangoException('mongo server config custom "' . $sCustom . '"');
			}

			$aGet += $aCustom;
		}

		unset($aGet['custom']);
		$aGet += [
			'capacity' => 0,
			'pool' => [],
			'max_capacity' => 0,
		];

		if (!$aGet['pool'] || !is_array($aGet['pool'])) {
			throw new TangoException('mongo config "' . $sConfig . '" empty pool');
		}

		if ($aGet['capacity']) {
			if (static::$_sKeyType != 'int') {
				throw new TangoException('mongo config "' . $sConfig . '" enabled sharding but no int key');
			}
			$aGet['max_capacity'] = $aGet['capacity'] * count($aGet['pool']);
		}

		$aConfig = $aGet;
		return $aConfig;
	}
1237431
public function getConfiguration(){
        $rest = $this->getService( self::API_SYSTEM);
        $rest->GET();

        return $rest->getResult( models\SystemConfig::class);
    }
1159054
public function getParametersConfig() {
		if ($this->_parametersConfig === null) {
			$this->_parametersConfig     = new Config();
			$this->_parametersConfigLock = true;
		}
		
		return $this->_parametersConfig;
	}
177052
public static function getInstance()
    {
        if (self::$_instance === null) {
            self::$_instance = new Config();
            if (self::$_instance->_store === null) {
                self::$_instance->_store = self::$_instance->_setStore();
            }
        }

        return self::$_instance;
    }
656960
public function getConfiguration()
    {
        if (null === $this->configuration) {
            $this->configuration = Propel::getConfiguration(PropelConfiguration::TYPE_OBJECT);
        }

        return $this->configuration;
    }
1077021
public function getRawConfig()
    {
        if ($this->_data === null) {
            if ($this->cache instanceof Cache) {

                $data = $this->cache->get($this->cacheKey);

                if ($data === false) {
                    $data = $this->model->getSettings();
                    $this->cache->set($this->cacheKey, $data);
                }
            } else {
                $data = $this->model->getSettings();
            }
            $this->_data = $data;
        }
        return $this->_data;
    }
402014
public function getFieldConfig()
    {
        if ($this->fieldConfig !== null) {
            return $this->fieldConfig;
        }

        return $this->fieldConfig = $this->makeConfig($this->model->settingsFields);
    }
830012
public function getConfigsFactory() {
		if ($this->_configsFactory === null) {
			if ($this instanceof LocatorAwareInterface && $this->hasLocator()) {
				$this->_configsFactory = $this->getLocator()->get('configsFactory');
				
				if (! $this->_configsFactory instanceof FactoryInterface) {
					throw new NoConfigsFactory('Configs\' factory must implement the "FactoryInterface"');
				}
			} else {
				throw new NoConfigsFactory('No configs\' factory been supplied, also unable to obtain one through locator');
			}
		}
		
		return $this->_configsFactory;
	}
537523
public function currentConfig(){

        if($this->currentConfig !== false){
            return $this->currentConfig;
        }

        $this->currentConfig = null;

        if(!$pageType = $this->current()){
            return;
        }

        $pageId = null;

        if ($page = $this->getBestMatchingPage($pageType)) {
            $pageId = $page->getIdentifier();
        }

        $this->currentConfig = $this->configRepository->getConfig($pageType, $pageId);

        return $this->currentConfig;
    }
567373
protected function getSettingsInstance()
    {
        if (isset($this->settings)) {
            return $this->settings;
        }

        $settingsConfig = $this->getSettingsConfig();

        return $this->settings = new Settings($settingsConfig, $this);
    }
829810
public function getConfig()
    {
        if ($this->cache instanceof Cache\CacheInterface && !empty($configs = $this->cache->getConfig())) {
            return $configs;
        }

        $configs = $this->moduleHandler->getModulesConfig();
        foreach ($this->files as $file) {
            $config = require $file;
            if (!is_array($config)) {
                throw new Exception\RuntimeException(sprintf('The config in "%s" file must be array data type', $file));
            }
            $configs = ArrayUtils::merge($configs, require $file);
        }

        return $this->cleanUp($configs);
    }
1142668
public function getContextConfig()
    {
        if (empty($this->_contextConfig))
            $this->_contextConfig = Helper::getConfig('application', $this->_context);
        
        return $this->_contextConfig;
    }
584163
public function getConfig()
    {
        if ($this->_oConfigObject === null) {
            $this->_oConfigObject = oxRegistry::getConfig();
        }

        return $this->_oConfigObject;
    }
861356
public static function get() {

        $keys = func_get_args();
        $config = self::getConfig();
        $value = $config;

        if (!empty($config) && !empty($keys)) {

            foreach ($keys as $number => $name) {

                if (is_object($value)) {

                    $value = Format::objectToArray($value);
                }

                if ($number == 0 && isset($value[$name])) {

                    $value = $value[$keys[0]];
                } else if ($number != 0 && isset($value[$name])) {

                    $value = $value[$name];
                } else {

                    return false;
                }
            }

            return $value;
        } else if (!empty($config)) {

            return $config;
        }

        return false;
    }
1187135
public function getConfig()
    {
        if (null === $this->config) {
            require_once dirname(__FILE__) . '/../config/QuickGeneratorConfig.php';
            $this->config = new QuickGeneratorConfig($this->getPlatform());
        }

        return $this->config;
    }