Bolt\Configuration\YamlUpdater::save PHP Method

save() protected method

Save our modified .yml file.
protected save ( boolean $makebackup ) : boolean
$makebackup boolean Back up the file before commiting changes to it
return boolean true if save was successful
    protected function save($makebackup)
    {
        if (!$this->verify()) {
            return false;
        }
        // If we're backing up do it, if we can
        if ($makebackup) {
            $this->backup();
        }
        // Update the YAML file if we can, or throw an error
        $this->file->update($this->yaml);
        return true;
    }