src/Config/Config.php
public function getConfig($name) {
        $data = $this->get($name);
        if ($data === null) {
            return null;
        }
        if (isset($this->data['global'])) {
            $data['global'] = $this->data['global'];
        }
        $config = new self();
        $config->load($data);
        return $config;
    }
public function getConfig($name) {
        $data = $this->get($name);
        if ($data === null) {
            return null;
        }
        if (isset($this->data['global'])) {
            $data['global'] = $this->data['global'];
        }
        $config = new self();
        $config->load($data);
        return $config;
    }
public function getConfig ( $ name ) { $ data = $ this -> get ( $ name ) ; if ( $ data === null ) { return null ; } if ( isset ( $ this -> data [ 'global' ] ) ) { $ data [ 'global' ] = $ this -> data [ 'global' ] ; } $ config = new self ( ) ; $ config -> load ( $ data ) ; return $ config ; }
Get the value at the given key and return it as a config object
Get the value at the given key and return it as a config object