src/Config/Config.php
public function set($key, $value)
    {
        $this->load();
        $oldValue = isset($this->values[$key]) ? $this->values[$key] : null;
        $this->values[$key] = $value;
        return $oldValue;
    }
public function set($key, $value)
    {
        $this->load();
        $oldValue = isset($this->values[$key]) ? $this->values[$key] : null;
        $this->values[$key] = $value;
        return $oldValue;
    }
public function set ( $ key , $ value ) { $ this -> load ( ) ; $ oldValue = isset ( $ this -> values [ $ key ] ) ? $ this -> values [ $ key ] : null ; $ this -> values [ $ key ] = $ value ; return $ oldValue ; }
Sets the internal value of the specified configuration key.

This value will not be stored, use save() for that.

@param string $key
The configuration value to set.
@param mixed $value
The new value for the configuration key.

@return mixed
The old value.
Sets the internal value of the specified configuration key .