Peridot\Configuration::write PHP Method

write() protected method

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