src/Settings/YamlSettings.php
public function write($file, $settings)
    {
        $file = '/settings/' . $file;

        /**
         * @todo validate that $file is a string
         * @todo validate that $settings is a string
         */

        $settings = json_decode(json_encode($settings), true);

        $settings = $this->yaml->dump($settings);

        $this->source_filesystem->put($file . '.yml', $settings);
    }
public function write($file, $settings)
    {
        $file = '/settings/' . $file;

        /**
         * @todo validate that $file is a string
         * @todo validate that $settings is a string
         */

        $settings = json_decode(json_encode($settings), true);

        $settings = $this->yaml->dump($settings);

        $this->source_filesystem->put($file . '.yml', $settings);
    }
public function write ( $ file , $ settings ) { $ file = '/settings/' . $ file ; /**
         * @todo validate that $file is a string
         * @todo validate that $settings is a string
         */ $ settings = json_decode ( json_encode ( $ settings ) , true ) ; $ settings = $ this -> yaml -> dump ( $ settings ) ; $ this -> source_filesystem -> put ( $ file . '.yml' , $ settings ) ; }
Writes a settings file.

@param  string $file     The file name
@param  array  $settings Settings to write to the file.
@return void
Writes a settings file .