protected function write($varName, $value)
    {
        $this->$varName = $value;
        $parts = preg_split('/(?=[A-Z])/', $varName);
        $env = 'PERIDOT_' . strtoupper(join('_', $parts));
        putenv($env . '=' . $value);
        return $this;
    }
protected function write($varName, $value)
    {
        $this->$varName = $value;
        $parts = preg_split('/(?=[A-Z])/', $varName);
        $env = 'PERIDOT_' . strtoupper(join('_', $parts));
        putenv($env . '=' . $value);
        return $this;
    }
protected function write ( $ varName , $ value ) { $ this -> $ varName = $ value ; $ parts = preg_split ( '/(?=[A-Z])/' , $ varName ) ; $ env = 'PERIDOT_' . strtoupper ( join ( '_' , $ parts ) ) ; putenv ( $ env . '=' . $ value ) ; return $ this ; }
Write a configuration value and persist it to the current
environment.

@param $varName
@param $value
@return $this
Write a configuration value and persist it to the current environment .