Example #1
0
 public function unshareDocument(Document $document, User $unshareFrom)
 {
     $share = $document->getShareOf($unshareFrom);
     $this->documentRepository->delete($share);
     $document->removeShareOf($unshareFrom);
 }