예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function removeChild(PermissionInterface $permission)
 {
     if ($this->hasChild($permission)) {
         $permission->setParent(null);
         $this->children->removeElement($permission);
     }
 }
예제 #2
0
파일: Role.php 프로젝트: ahmadrabie/Sylius
 /**
  * {@inheritdoc}
  */
 public function removePermission(PermissionInterface $permission)
 {
     if ($this->hasPermission($permission)) {
         $this->permissions->removeElement($permission);
     }
 }