Find a ConfigValue by path
<section_name>:<group_name>:<value_name>

@param string $path Path of the value

@return VinceT\AdminConfigurationBundle\Entity\ConfigGroup|null
434852
public function findOneByPath($path)
    {
        list($sname, $gname, $vname) = explode(':', $path);

        return $this->findOneBySectionGroupAndValueName($sname, $gname, $vname);
    }
862874
final protected function getConfigValue(string $key)
    {
        $retval = false;

        if (isset($this->config[$key], $this->config[$key][ConfigurationInterface::KEY_VALUE])) {
            $retval = $this->config[$key][ConfigurationInterface::KEY_VALUE];
        } elseif (isset($this->config[$key])) {
            $retval = $this->config[$key];
        }

        return $retval;
    }
701647
protected function getValue(array $data, array $path)
    {
        $found = true;

        for ($x = 0; ($x < count($path) && $found); $x++) {
            $key = $path[$x];

            if (isset($data[$key])) {
                $data = $data[$key];
            } else {
                $found = false;
            }
        }

        if ($found) {
            return $data;
        }
        return null;
    }
1342247
public function getConfigValues($subSection = null) {
        $config = Zend_Registry::get('config');
        // set defaults
        $values = $this->_defaultConfigValues;
        if ($config->auth) {
            $values = array_merge($values, $config->auth->toArray());
        }
        if ($subSection) {
            return array_get($values, $subSection);
        }
        return $values;
    }
607148
private function getCacheProviderConfig($path)
    {
        $cacheProvider = null;

        if (!empty($this->config[$path]) && !empty($this->config[$path]['cache'])) {
            $cacheProvider = $this->config[$path];
        }

        if (!$cacheProvider
            && !empty($this->config['default'])
            && !empty($this->config['default']['cache'])
        ) {
            $cacheProvider = $this->config['default'];
        }

        return $cacheProvider;
    }
489354
public function getSection($section) {
		if (!isset($this->configValues[$section])) {
			return null;
		}
		return $this->configValues[$section];
	}
557928
protected function getDestenationPath($path)
    {
        if (!empty($path)) {
            $path = Helpers::getPathWithSlash($path);
        }

        return Config::getViewsPath() . $path;
    }
837537
public function findConfigFile($path)
    {
        $configFilePath = rtrim($path, '/') . '/' . PHPFormatter::CONFIG_FILE_NAME;
        $config = [];
        if (is_file($configFilePath)) {
            $yamlParser = new Yaml();
            $config = $yamlParser->parse(file_get_contents($configFilePath));
        }

        return $config;
    }
1307707
private function recurse_through_config(array $values, $path = null)
    {
        if (empty($values)) {
            $this->has($path);
        }

        foreach ($values as $key => $value) {
            if (!\is_string($key)) {
                $this->has($path);
                continue;
            }

            if (\is_array($value)) {
                $this->recurse_through_config($value, $path ? "$path.$key" : $key);
            } else {
                $this->has("$path.$key");
            }
        }
    }
882458
static private function decodeConfig(string $path): ?string
    {
        //如果取不到路由配置,则不对此请求进行解析处理,即保持原样
        $config = configDefault(false, 'router');
        if (!$config) {
            return null;
        }

        // 根据路由配置进行解码,循环每一个配置
        foreach ($config as $key => $case) {
            // 下划线开头的表示配置参数,不是路由
            if (substr($key, 0, 1) == '_') {
                continue;
            }

            // 如果没有设置解码参数
            if (!isset($case['decode']) or !$case['decode']) {
                continue;
            }

            // 取路由配置中的解码参数: 源 正则 和 替换内容
            list ($regular, $replace) = $case['decode'];

            // 如果源 正则匹配,则表明需要使用此规则进行处理
            if (preg_match($regular, $path)) {
                // 如果匹配路由,返回替换后的路由
                return preg_replace($regular, $replace, $path);
            }
        }

        return null;
    }
1274679
public function findConfigFile(string $path) : array
    {
        $configFilePath = rtrim($path, '/') . '/' . TranslationServer::CONFIG_FILE_NAME;
        if (!is_file($configFilePath)) {
            throw new Exception('File ".translation.yml" not found');
        }

        $yamlParser = new YamlParser();
        $config = $yamlParser->parse(file_get_contents($configFilePath));

        return $config;
    }
697047
public function value($root, $path)
    {
        if (!is_array($root) && !is_object($root)) {
            return null;
        }

        if (!$this->isNestedKey($path)) {
            return $this->getNode($root, $path);
        }

        return $this->getNestedValue($root, $path);
    }
407510
public static function getValueFromXPath($path, \DOMXPath $xpath, \DomNode $context = null, $default = null)
    {
        $result = $xpath->query($path, $context);
        if (0 === $result->length) {
            return $default;
        }

        $item = $result->item(0);
        if (null === $item) {
            return $default;
        }

        return $item->nodeValue;
    }
436443
public function getValueByPathOrDefaultValue($path, $defaultValue)
    {
        $value = $this->getValueByPath($path);
        if (is_null($value)) {
            return $defaultValue;
        }

        return $value;
    }
1157023
public function getExtensionConfigurationFromPath($path)
    {
        $extensionConfiguration = $this->getExtensionConfiguration();

        return (ArrayUtility::isValidPath($extensionConfiguration, $path, '.'))
            ? ArrayUtility::getValueByPath($extensionConfiguration, $path, '.')
            : null;
    }
248291
public function getConfig($path, $default_value = null)
    {
        $pos = &$this->_lookupConfigElement($path, false);

        // path element don't exist - return default value
        if ($pos === false) {
            return $default_value;
        }

        return $pos;
    }
626703
public function getConfigValue(
        $path,
        $contextScope = 'default',
        $contextScopeId = null
    ) {
        $config = $this->scopeConfig->getValue(
            $path,
            $contextScope,
            $contextScopeId
        );

        return $config;
    }