config/Database.php
public function read($name, $default = null)
    {
        $path = explode('.', $name);
        $key = array_shift($path);

        if ($this->checkCache($key)) {
            return $path ? $this->cache[$key]->get($path, $default) : $this->cache[$key]->toArray();
        }

        return $default;
    }
public function read($name, $default = null)
    {
        $path = explode('.', $name);
        $key = array_shift($path);

        if ($this->checkCache($key)) {
            return $path ? $this->cache[$key]->get($path, $default) : $this->cache[$key]->toArray();
        }

        return $default;
    }
public function read ( $ name , $ default = null ) { $ path = explode ( '.' , $ name ) ; $ key = array_shift ( $ path ) ; if ( $ this -> checkCache ( $ key ) ) { return $ path ? $ this -> cache [ $ key ] -> get ( $ path , $ default ) : $ this -> cache [ $ key ] -> toArray ( ) ; } return $ default ; }
Read config data

@param   string      $name
@param   mixed|null  $default    (optional)

@return  mixed
Read config data