src/CarteBlanche/App/Config.php
protected function _parseConfig($conf, $stack_name = 'global')
    {
        if (is_string($conf)) {
            $this->_parseConfigRecursive($conf, null, $stack_name);
        } elseif (is_array($conf)) {
            array_walk_recursive($conf, array($this, '_parseConfigRecursive'), $stack_name);
            $conf = array_filter($conf);
        }
        return $conf;
    }
protected function _parseConfig($conf, $stack_name = 'global')
    {
        if (is_string($conf)) {
            $this->_parseConfigRecursive($conf, null, $stack_name);
        } elseif (is_array($conf)) {
            array_walk_recursive($conf, array($this, '_parseConfigRecursive'), $stack_name);
            $conf = array_filter($conf);
        }
        return $conf;
    }
Parse a configuration stack or entry

This function will complete a configuration entry replacing references to other entries written like :
'name' => '%entry%'
where "entry" is the name of another defined configuration entry.

@param   mixed   $conf
@param   string  $stack_name
@return  mixed