public function commit()
    {
    	// Write the changes
        if (is_writable($this->file)) {
            $config = var_export($this->cfg, true);
            file_put_contents($this->file, "<?php return $config ;");

            return true;
        }
        throw new ConfigException("Could not write config file. $file is not writable", 1);
    }
public function commit()
    {
    	// Write the changes
        if (is_writable($this->file)) {
            $config = var_export($this->cfg, true);
            file_put_contents($this->file, "<?php return $config ;");

            return true;
        }
        throw new ConfigException("Could not write config file. $file is not writable", 1);
    }
public function commit ( ) { // Write the changes if ( is_writable ( $ this -> file ) ) { $ config = var_export ( $ this -> cfg , true ) ; file_put_contents ( $ this -> file , "<?php return $config ;" ) ; return true ; } throw new ConfigException ( "Could not write config file. $file is not writable" , 1 ) ; }
Updates the config file and writes it.

@throws ConfigException on fatal error
Updates the config file and writes it .