src/Config/Config.php
public function save(array $values)
    {
        // Log values in a notice but without the password.
        $copy = $values;
        if (!empty($copy[Tag::Password])) {
            $copy[Tag::Password] = 'REMOVED FOR SECURITY';
        }
        $this->log->notice('ConfigStore::save(): saving %s', serialize($copy));

        // Remove password if not sent along. We have had some reports that
        // passwords were gone missing, perhaps some shops do not send the value
        // of password fields to the client???
        if (array_key_exists(Tag::Password, $values) && empty($values[Tag::Password])) {
            unset($values[Tag::Password]);
        }

        // As we have 2 setting screens, but also with updates, not all settings
        // will be passed in: complete with other settings.
        $this->load();
        $values = array_merge($this->values, $values);
        $values = $this->castValues($values);
        $values = $this->removeValuesNotToBeStored($values);
        $result = $this->getConfigStore()->save($values);
        $this->isConfigurationLoaded = false;
        // Sync internal values.
        $this->load();
        return $result;
    }
public function save(array $values)
    {
        // Log values in a notice but without the password.
        $copy = $values;
        if (!empty($copy[Tag::Password])) {
            $copy[Tag::Password] = 'REMOVED FOR SECURITY';
        }
        $this->log->notice('ConfigStore::save(): saving %s', serialize($copy));

        // Remove password if not sent along. We have had some reports that
        // passwords were gone missing, perhaps some shops do not send the value
        // of password fields to the client???
        if (array_key_exists(Tag::Password, $values) && empty($values[Tag::Password])) {
            unset($values[Tag::Password]);
        }

        // As we have 2 setting screens, but also with updates, not all settings
        // will be passed in: complete with other settings.
        $this->load();
        $values = array_merge($this->values, $values);
        $values = $this->castValues($values);
        $values = $this->removeValuesNotToBeStored($values);
        $result = $this->getConfigStore()->save($values);
        $this->isConfigurationLoaded = false;
        // Sync internal values.
        $this->load();
        return $result;
    }
public function save ( array $ values ) { // Log values in a notice but without the password. $ copy = $ values ; if ( ! empty ( $ copy [ Tag :: Password ] ) ) { $ copy [ Tag :: Password ] = 'REMOVED FOR SECURITY' ; } $ this -> log -> notice ( 'ConfigStore::save(): saving %s' , serialize ( $ copy ) ) ; // Remove password if not sent along. We have had some reports that // passwords were gone missing, perhaps some shops do not send the value // of password fields to the client??? if ( array_key_exists ( Tag :: Password , $ values ) && empty ( $ values [ Tag :: Password ] ) ) { unset ( $ values [ Tag :: Password ] ) ; } // As we have 2 setting screens, but also with updates, not all settings // will be passed in: complete with other settings. $ this -> load ( ) ; $ values = array_merge ( $ this -> values , $ values ) ; $ values = $ this -> castValues ( $ values ) ; $ values = $ this -> removeValuesNotToBeStored ( $ values ) ; $ result = $ this -> getConfigStore ( ) -> save ( $ values ) ; $ this -> isConfigurationLoaded = false ; // Sync internal values. $ this -> load ( ) ; return $ result ; }
Saves the configuration to the actual configuration provider.

@param array $values
A keyed array that contains the values to store, this may be a subset
of the possible keys. Keys that are not present will not be changed.

@return bool
Success.
Saves the configuration to the actual configuration provider .