public function get($key, $options = null, $default = null, $filter = null)
    {
        $value = $default;
        if (is_array($options) && array_key_exists($key, $options)) {
            $value = $options[$key];
        } elseif (array_key_exists($key, $this->config)) {
            $value = $this->config[$key];
        }
        if (is_callable($filter)) {
            $filter($value);
        }
        return $value;
    }
public function get($key, $options = null, $default = null, $filter = null)
    {
        $value = $default;
        if (is_array($options) && array_key_exists($key, $options)) {
            $value = $options[$key];
        } elseif (array_key_exists($key, $this->config)) {
            $value = $this->config[$key];
        }
        if (is_callable($filter)) {
            $filter($value);
        }
        return $value;
    }
public function get ( $ key , $ options = null , $ default = null , $ filter = null ) { $ value = $ default ; if ( is_array ( $ options ) && array_key_exists ( $ key , $ options ) ) { $ value = $ options [ $ key ] ; } elseif ( array_key_exists ( $ key , $ this -> config ) ) { $ value = $ this -> config [ $ key ] ; } if ( is_callable ( $ filter ) ) { $ filter ( $ value ) ; } return $ value ; }
Get a Config option value.

@param string        $key The option key to lookup a value for.
@param array|null    $options An associative array of options to override the persistent config.
@param mixed         $default A default value to return if the lookup fails.
@param callable|null $filter An optional callback to filter the value with.

@return mixed The value of the option or the specified default.
Get a Config option value .