src/PriorityConfigurationChain.php
public function get($key, $default = null)
    {
        $stored = static::getValue($key, false, $this->data);
        if ($stored !== false) {
            return $stored;
        }

        foreach ($this->priorityList as $driver) {
            $value = $driver->get($key, false);
            if ($value !== false) {
                $default = $value;
                static::setValue($key, $value, $this->data);
                break;
            }
        }
        return $default;
    }
public function get($key, $default = null)
    {
        $stored = static::getValue($key, false, $this->data);
        if ($stored !== false) {
            return $stored;
        }

        foreach ($this->priorityList as $driver) {
            $value = $driver->get($key, false);
            if ($value !== false) {
                $default = $value;
                static::setValue($key, $value, $this->data);
                break;
            }
        }
        return $default;
    }
public function get ( $ key , $ default = null ) { $ stored = static :: getValue ( $ key , false , $ this -> data ) ; if ( $ stored !== false ) { return $ stored ; } foreach ( $ this -> priorityList as $ driver ) { $ value = $ driver -> get ( $ key , false ) ; if ( $ value !== false ) { $ default = $ value ; static :: setValue ( $ key , $ value , $ this -> data ) ; break ; } } return $ default ; }
Returns the value store with provided key or the default value.

@param string $key     The key used to store the value in configuration
@param mixed  $default The default value if no value was stored.

@return mixed The stored value or the default value if key
was not found.
Returns the value store with provided key or the default value .