public function writeToStorage($fileName, $content) { $path = $this->getStoragePath(); if (!file_exists($path)) { mkdir($path); } file_put_contents($path . DIRECTORY_SEPARATOR . $fileName, $content); }