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

        foreach ($pieces as $piece) {
            if (!isset($config[$piece])) {
                return $default;
            }

            $config = $config[$piece];
        }

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

        foreach ($pieces as $piece) {
            if (!isset($config[$piece])) {
                return $default;
            }

            $config = $config[$piece];
        }

        return $config;
    }
public function get ( $ key , $ default = null ) { $ pieces = explode ( '.' , $ key ) ; $ config = $ this -> config ; foreach ( $ pieces as $ piece ) { if ( ! isset ( $ config [ $ piece ] ) ) { return $ default ; } $ config = $ config [ $ piece ] ; } return $ config ; }
Get the configuration value.

@param      $key
@param null $default

@return mixed|null
Get the configuration value .