Zepi/Core/Utils/src/Backend/ConfigurationFileBackend.php
public function saveConfiguration($settings)
    {
        if (file_exists($this->path) && !is_writable($this->path)) {
            throw new Exception('The file "' . $this->path . '" isn\'t writable!');
        }
        
        $content = json_encode($settings);
        
        return file_put_contents($this->path, $content);
    }
public function saveConfiguration($settings)
    {
        if (file_exists($this->path) && !is_writable($this->path)) {
            throw new Exception('The file "' . $this->path . '" isn\'t writable!');
        }
        
        $content = json_encode($settings);
        
        return file_put_contents($this->path, $content);
    }
public function saveConfiguration ( $ settings ) { if ( file_exists ( $ this -> path ) && ! is_writable ( $ this -> path ) ) { throw new Exception ( 'The file "' . $ this -> path . '" isn\'t writable!' ) ; } $ content = json_encode ( $ settings ) ; return file_put_contents ( $ this -> path , $ content ) ; }
Saves the configuration to the file.

@access public
@param array $settings
@return boolean

@throws Zepi\Turbo\Exception The file "$path" isn't writable!
Saves the configuration to the file .