Example #1
0
 /**
  * {@inheritdoc}
  */
 public function put($path, $data)
 {
     $path = $this->getAbsolutePath($path);
     $this->filesystem->tryCreateDirectory(dirname($path), 0777, true);
     try {
         $this->filesystem->write($path, $data);
     } catch (FileSystemException $e) {
         throw Exception\StorageException::putError($path, $e);
     }
 }