Get a config

@param string $configName The name of the config. This namespaced (i.e Mooti/Framework/Database)
544190
public function getConfig($configName)
    {
        if (isset($this->configs[$configName])) {
            return $this->configs[$configName];
        }

        $applicationRootDirectory = $this->get(ServiceProvider::APPLICATION_RUNTIME)->getRootDirectory();
        $configDirectoryPath = $applicationRootDirectory . '/config/';

        $configNameParts = explode('/', $configName);

        $lastPart = array_pop($configNameParts);

        $className = '\\' . implode('\\', $configNameParts) . '\\Config\\' . $lastPart;

        try {
            $config = $this->createNew($className);
        } catch (ClassNotFoundException $e) {
            throw new ConfigNotFoundException('Cannot find the config class for '.$configName.' (tried '.$className.')');
        }

        $inflector = $this->get(ServiceProvider::INFLECTOR);
        $fullConfigDirectoryPath = $configDirectoryPath . $inflector->hyphenate(implode('/', $configNameParts));

        $config->setDirPath($fullConfigDirectoryPath);
        $config->open();
        $this->setConfig($configName, $config);
        return $config;
    }
585774
private function getByNamespace($namespace)
    {
        $this->checkForNonEmptyNamespace($namespace);

        if (!isset($this->configurations[$namespace])) {
            $this->configurations[$namespace]
                = $this->retrieveConfigurationFromTypoScriptSetup($namespace);
        }

        return $this->configurations[$namespace];
    }
342698
final protected function getValueFromConfig(string $param)
  {
    $value = null;
    $config = self::$suiteConfig;

    preg_match_all(self::$regEx['config'], $param, $args, PREG_PATTERN_ORDER);
    foreach ($args[1] as $arg) {
      if (array_key_exists($arg, $config)) {
        $value = $config[$arg];
        if (is_array($value)) {
          $config = $value;
        } else {
          break;
        }
      }
    }
    return $value;
  }
508704
private function _getConfig(string $key, $default = null)
    {
        if (isset($this->_config[$key])) {
            return $this->_config[$key];
        }

        return $default;
    }
738250
public function get(string $key)
    {
        return isset($this->_configValues[$key])
            ? $this->_configValues[$key]
            : null;
    }
1268781
protected function getConfig($name)
	{
		$config = $this->app['config']['remote.connections.'.$name];

		if ( ! is_null($config)) return $config;

		throw new \InvalidArgumentException("Remote connection [$name] not defined.");
	}
117034
protected function _getConf()
    {
        // retrieve and cache config
        $services = $this->services();

        /** @var aSapi $config */
        $config   = $services->get('/sapi');
        $orig = $config   = $config->config();
        /** @var DataEntity $config */
        $config   = $config->get(\Module\Authorization\Module::CONF, array());

        if (!isset($config[self::CONF]) && !is_array($config[self::CONF]))
            return null;


        $config   = $config[self::CONF];
        return $config;
    }
1231681
public function getContentCss($configName = null)
    {
        if (is_null($configName)) {
            $configName = $this->ckEditorConfigManager->getDefaultConfig();
        }

        $configs = $this->ckEditorConfigManager->getConfigs();
        if (array_key_exists('contentsCss', $configs[$configName])) {
            return $configs[$configName]['contentsCss'];
        }

        return false;
    }
572341
public static function getData($configName)
    {
        $path = __DIR__ . DIRECTORY_SEPARATOR . self::CONFIG_PATH . DIRECTORY_SEPARATOR . $configName . self::CONFIG_EXT;
        if (is_file($path) && file_exists($path)) {
            return require($path);
        }

        return [];
    }
345334
protected function getConfig($name)
	{
		$name = $name ?: $this->getDefaultConnection();

		// To get the database connection configuration, we will just pull each of the
		// connection configurations and get the configurations for the given name.
		// If the configuration doesn't exist, we'll throw an exception and bail.
		$connections = $this->app['config']['database.connections'];

		if (is_null($config = array_get($connections, $name)))
		{
			throw new InvalidArgumentException("Database [$name] not configured.");
		}

		return $config;
	}
26189
public function getConfig($key) {
        return isset($this->_config[$key]) ? $this->_config[$key] : null;
    }
1134158
private function getMandatoryKey($key,Array $a,$configName='config')
    {
        if (!array_key_exists($key,$a))
        {
            throw new \Tripod\Exceptions\ConfigException("Mandatory config key [$key] is missing from $configName");
        }
        return $a[$key];
    }
262851
protected function getNormalizedConfig($configName = null)
    {
        if (isset($this->configs[$configName])) {
            $config = $this->configs[$configName];
        } elseif ($configName === null) {
            $arr = array();
            $config = $this->normalizeConfig($arr);
        } else {
            throw new \Exception(sprintf('Firewall configuration "%s" not found.', $configName));
        }

        return $config;
    }
564931
protected function _getAdapterClassFromConfig($configName) {
		$config = $this->getStorageConfig($configName);

		if (!empty($config['adapterClass'])) {
			return $config['adapterClass'];
		}

		return false;
	}
1174509
protected function getConfigOption(array $config, $key)
    {
        if (empty($config[$key]) || !is_string($config[$key])) {
            throw new \DomainException(
                "$key must be a non-empty string"
            );
        }
        return $config[$key];
    }
664585
public function getMethodArgs($argName){

		//check if the argument is already set
		if( array_key_exists($argName, $this->methodArgs)){

			//return the value of this argument
			return $this->methodArgs[$argName];

		}

		//this argument is not yet set, so return null
		else{

			//return a null
			return null;

		}

	}
1088706
public String getContextConfig(final String configName) {
		String configValue = null;
		AccessPoint context = getWbRequest().getAccessPoint();
		if(context != null) {
			Properties configs = context.getConfigs();
			if(configs != null) {
				configValue = configs.getProperty(configName);
			}
		}

		return configValue;
	}