Beispiel #1
0
 /**
  * Save configuration to file
  * @param string $filename
  * @return bool
  * @throws \CloudFramework\Exceptions\LoaderException
  */
 public function saveConfigFile($filename)
 {
     $config = Yaml::dump($this->config);
     if (false === ConfigLoader::createDir(dirname($filename)) || false === @file_put_contents($filename, $config)) {
         throw new LoaderException('Can not save configuration to ' . $filename);
     }
     return true;
 }