/** * save * * Save the contents to a yaml file * * @param string $config_name | the configuration to save. By default, all * @param string $filename | where to save the configuration * @return boolean $result */ public function save($config_name, $file) { $c = $this->c($config_name); $yaml = Yaml::Dump($c, 10); return file_put_contents($file, $yaml) ? true : false; }