public function save(string $pathAndFilename, array $configuration)
    {
        $header = '';
        if (file_exists($pathAndFilename . '.yaml')) {
            $header = $this->getHeaderFromFile($pathAndFilename . '.yaml');
        }
        $yaml = Yaml::dump($configuration, 99, 2);
        file_put_contents($pathAndFilename . '.yaml', $header . chr(10) . $yaml);
    }
public function save(string $pathAndFilename, array $configuration)
    {
        $header = '';
        if (file_exists($pathAndFilename . '.yaml')) {
            $header = $this->getHeaderFromFile($pathAndFilename . '.yaml');
        }
        $yaml = Yaml::dump($configuration, 99, 2);
        file_put_contents($pathAndFilename . '.yaml', $header . chr(10) . $yaml);
    }
public function save ( string $ pathAndFilename , array $ configuration ) { $ header = '' ; if ( file_exists ( $ pathAndFilename . '.yaml' ) ) { $ header = $ this -> getHeaderFromFile ( $ pathAndFilename . '.yaml' ) ; } $ yaml = Yaml :: dump ( $ configuration , 99 , 2 ) ; file_put_contents ( $ pathAndFilename . '.yaml' , $ header . chr ( 10 ) . $ yaml ) ; }
Save the specified configuration array to the given file in YAML format.

@param string $pathAndFilename Full path and filename of the file to write to, excluding the dot and file extension (i.e. ".yaml")
@param array $configuration The configuration to save
@return void
Save the specified configuration array to the given file in YAML format .