public function save(UserConfiguration $config)
    {
        file_put_contents($this->storagePath, Yaml::dump($config->toArray(), 3, 2));

        return $this;
    }
public function save(UserConfiguration $config)
    {
        file_put_contents($this->storagePath, Yaml::dump($config->toArray(), 3, 2));

        return $this;
    }
public function save ( UserConfiguration $ config ) { file_put_contents ( $ this -> storagePath , Yaml :: dump ( $ config -> toArray ( ) , 3 , 2 ) ) ; return $ this ; }
Save the given configuration.

@param UserConfiguration $config

@return $this
Save the given configuration .