public function get($key, $default = null)
    {
        $config = $this->config;

        foreach (explode('.', $key) as $k) {
            if (! isset($config[$k])) {
                return $default;
            }
            $config = $config[$k];
        }

        return $config;
    }
public function get($key, $default = null)
    {
        $config = $this->config;

        foreach (explode('.', $key) as $k) {
            if (! isset($config[$k])) {
                return $default;
            }
            $config = $config[$k];
        }

        return $config;
    }
public function get ( $ key , $ default = null ) { $ config = $ this -> config ; foreach ( explode ( '.' , $ key ) as $ k ) { if ( ! isset ( $ config [ $ k ] ) ) { return $ default ; } $ config = $ config [ $ k ] ; } return $ config ; }
Retrieve a configuration option via a provided key.

@param string $key     Unique configuration option key
@param mixed  $default Default value to return if option does not exist

@return mixed Stored config item or $default value
Retrieve a configuration option via a provided key .