src/Debug/Config.php
public function getCfg($path = '')
    {
        $path = $this->normalizePath($path);
        $path = \array_filter(\preg_split('#[\./]#', $path), 'strlen');
        if (empty($path)) {
            return $this->getCfgAll();
        }
        $classname = \array_shift($path);
        if ($classname == 'debug') {
            return $this->debug->utilities->arrayPathGet($this->cfg, $path);
        } elseif (isset($this->debug->{$classname}) && \is_object($this->debug->{$classname})) {
            $pathRel = \implode('/', $path);
            return $this->debug->{$classname}->getCfg($pathRel);
        }
        if (isset($this->cfgLazy[$classname]) && $path) {
            // want a config value of obj that has not yet been instantiated...
            // value may in cfgLazy
            $val = $this->debug->utilities->arrayPathGet($this->cfgLazy[$classname], $path);
            if ($val !== null) {
                return $val;
            }
        }
        if (isset($this->cfg['services'][$classname])) {
            // getting value of uninitialized obj
            // inititalize obj and retry
            $pathRel = \implode('/', $path);
            return $this->debug->{$classname}->getCfg($pathRel);
        }
        return null;
    }
public function getCfg($path = '')
    {
        $path = $this->normalizePath($path);
        $path = \array_filter(\preg_split('#[\./]#', $path), 'strlen');
        if (empty($path)) {
            return $this->getCfgAll();
        }
        $classname = \array_shift($path);
        if ($classname == 'debug') {
            return $this->debug->utilities->arrayPathGet($this->cfg, $path);
        } elseif (isset($this->debug->{$classname}) && \is_object($this->debug->{$classname})) {
            $pathRel = \implode('/', $path);
            return $this->debug->{$classname}->getCfg($pathRel);
        }
        if (isset($this->cfgLazy[$classname]) && $path) {
            // want a config value of obj that has not yet been instantiated...
            // value may in cfgLazy
            $val = $this->debug->utilities->arrayPathGet($this->cfgLazy[$classname], $path);
            if ($val !== null) {
                return $val;
            }
        }
        if (isset($this->cfg['services'][$classname])) {
            // getting value of uninitialized obj
            // inititalize obj and retry
            $pathRel = \implode('/', $path);
            return $this->debug->{$classname}->getCfg($pathRel);
        }
        return null;
    }
public function getCfg ( $ path = '' ) { $ path = $ this -> normalizePath ( $ path ) ; $ path = \ array_filter ( \ preg_split ( '#[\./]#' , $ path ) , 'strlen' ) ; if ( empty ( $ path ) ) { return $ this -> getCfgAll ( ) ; } $ classname = \ array_shift ( $ path ) ; if ( $ classname == 'debug' ) { return $ this -> debug -> utilities -> arrayPathGet ( $ this -> cfg , $ path ) ; } elseif ( isset ( $ this -> debug -> { $ classname } ) && \ is_object ( $ this -> debug -> { $ classname } ) ) { $ pathRel = \ implode ( '/' , $ path ) ; return $ this -> debug -> { $ classname } -> getCfg ( $ pathRel ) ; } if ( isset ( $ this -> cfgLazy [ $ classname ] ) && $ path ) { // want a config value of obj that has not yet been instantiated... // value may in cfgLazy $ val = $ this -> debug -> utilities -> arrayPathGet ( $ this -> cfgLazy [ $ classname ] , $ path ) ; if ( $ val !== null ) { return $ val ; } } if ( isset ( $ this -> cfg [ 'services' ] [ $ classname ] ) ) { // getting value of uninitialized obj // inititalize obj and retry $ pathRel = \ implode ( '/' , $ path ) ; return $ this -> debug -> { $ classname } -> getCfg ( $ pathRel ) ; } return null ; }
Get debug or child configuration value(s)

@param string $path what to get

@return mixed
Get debug or child configuration value ( s )