Pop\Config::__set PHP Method

__set() public method

Set method to set the property to the value of config[$name].
public __set ( string $name, mixed $value ) : void
$name string
$value mixed
return void
    public function __set($name, $value)
    {
        if ($this->allowChanges) {
            $this->config[$name] = is_array($value) ? new Config($value, $this->allowChanges) : $value;
        } else {
            throw new \Exception('Real-time configuration changes are not allowed.');
        }
    }