src/Debug/Config.php
private function normalizePath($path)
    {
        $path = \array_filter(\preg_split('#[\./]#', $path), 'strlen');
        if (\count($path) == 0 || $path[0] == '*') {
            return '';
        }
        $configKeys = $this->getConfigKeys();
        $found = false;
        foreach ($configKeys as $objName => $objKeys) {
            if (\in_array($path[0], $objKeys) && $objName !== 'debug') {
                $found = true;
                \array_unshift($path, $objName);
                break;
            }
            if ($path[0] == $objName && !empty($path[1])) {
                $found = true;
                break;
            }
        }
        if (!$found) {
            // we didn't find our key... assume debug
            \array_unshift($path, 'debug');
        }
        if (\end($path) == '*') {
            \array_pop($path);
        }
        return \implode('/', $path);
    }
private function normalizePath($path)
    {
        $path = \array_filter(\preg_split('#[\./]#', $path), 'strlen');
        if (\count($path) == 0 || $path[0] == '*') {
            return '';
        }
        $configKeys = $this->getConfigKeys();
        $found = false;
        foreach ($configKeys as $objName => $objKeys) {
            if (\in_array($path[0], $objKeys) && $objName !== 'debug') {
                $found = true;
                \array_unshift($path, $objName);
                break;
            }
            if ($path[0] == $objName && !empty($path[1])) {
                $found = true;
                break;
            }
        }
        if (!$found) {
            // we didn't find our key... assume debug
            \array_unshift($path, 'debug');
        }
        if (\end($path) == '*') {
            \array_pop($path);
        }
        return \implode('/', $path);
    }
private function normalizePath ( $ path ) { $ path = \ array_filter ( \ preg_split ( '#[\./]#' , $ path ) , 'strlen' ) ; if ( \ count ( $ path ) == 0 || $ path [ 0 ] == '*' ) { return '' ; } $ configKeys = $ this -> getConfigKeys ( ) ; $ found = false ; foreach ( $ configKeys as $ objName => $ objKeys ) { if ( \ in_array ( $ path [ 0 ] , $ objKeys ) && $ objName !== 'debug' ) { $ found = true ; \ array_unshift ( $ path , $ objName ) ; break ; } if ( $ path [ 0 ] == $ objName && ! empty ( $ path [ 1 ] ) ) { $ found = true ; break ; } } if ( ! $ found ) { // we didn't find our key... assume debug \ array_unshift ( $ path , 'debug' ) ; } if ( \ end ( $ path ) == '*' ) { \ array_pop ( $ path ) ; } return \ implode ( '/' , $ path ) ; }
Normalize string path
Returns either
''         empty string = all config values grouped by class
'{class}'         we want all config values for class
'{class}/{key}    want specific value from this class'
{class} may be debug

@param string $path string path

@return string
Normalize string path Returns either empty string = all config values grouped by class { class } we want all config values for class { class } / { key } want specific value from this class { class } may be debug