public function getDocumentPath(Path $p) { $documentPath = $this->baseDir . $p->getPath(); if (!is_readable($documentPath)) { throw new DocumentStorageException('unable to read document'); } return $documentPath; }
public function getDocument(Path $p, array $ifNoneMatch = null) { if (null !== $ifNoneMatch && in_array($this->md->getVersion($p), $ifNoneMatch)) { throw new RemoteStorageException('document not modified'); } return $this->d->getDocumentPath($p); }