示例#1
0
 /**
  * {@inheritDoc}
  */
 public function deletePost(PostInterface $post)
 {
     if (!$this->postAcl->canDelete($post)) {
         throw new AccessDeniedException();
     }
     $this->realManager->deletePost($post);
 }
示例#2
0
 /**
  * @param PostInterface $post
  *
  * @return boolean
  */
 public function canDelete(PostInterface $post)
 {
     return $this->postAcl->canDelete($post);
 }