components/Config.php
public function get($name, $default = null)
    {
        if (is_array($name)) {
            $result = [];

            foreach ($name as $key => $value) {
                if (is_int($key)) {
                    $result[$value] = $this->_get($value, $default);
                } else {
                    $result[$key] = $this->_get($key, $value);
                }
            }
            return $result;
        }
        return $this->_get($name, $default);
    }
public function get($name, $default = null)
    {
        if (is_array($name)) {
            $result = [];

            foreach ($name as $key => $value) {
                if (is_int($key)) {
                    $result[$value] = $this->_get($value, $default);
                } else {
                    $result[$key] = $this->_get($key, $value);
                }
            }
            return $result;
        }
        return $this->_get($name, $default);
    }
public function get ( $ name , $ default = null ) { if ( is_array ( $ name ) ) { $ result = [ ] ; foreach ( $ name as $ key => $ value ) { if ( is_int ( $ key ) ) { $ result [ $ value ] = $ this -> _get ( $ value , $ default ) ; } else { $ result [ $ key ] = $ this -> _get ( $ key , $ value ) ; } } return $ result ; } return $ this -> _get ( $ name , $ default ) ; }
Get configuration variable

@param $name
@param mixed $default
@return mixed
Get configuration variable