Example #1
0
 /**
  * {@inheritdoc}
  */
 public function get($path)
 {
     try {
         $path = $this->getAbsolutePath($path);
         if (!$this->filesystem->exists($path)) {
             throw Exception\NotFoundException::pathNotFound($path);
         }
         return $this->filesystem->read($path);
     } catch (FileSystemException $e) {
         throw Exception\StorageException::getError($path, $e);
     }
 }