DirectAdmin\LetsEncrypt\Lib\Utility\StorageTrait::writeToStorage PHP Method

writeToStorage() public method

Write to the storage, always overwrites files
public writeToStorage ( $fileName, $content )
$fileName
$content
    public function writeToStorage($fileName, $content)
    {
        $path = $this->getStoragePath();
        if (!file_exists($path)) {
            mkdir($path);
        }
        file_put_contents($path . DIRECTORY_SEPARATOR . $fileName, $content);
    }