src/ConfigTrait.php
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;
    }
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;
    }
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 ; }
Get configuration element.

@param string $path          Path to configuration element.
@param mixed  $default_value Default value returned if element don't exist

@return mixed
Get configuration element .