Exemplo n.º 1
0
 /**
  * Permission constructor.
  */
 public function __construct($className)
 {
     parent::__construct($className);
 }
Exemplo n.º 2
0
 /**
  * @param GrantableInterface  $grantable
  * @param PermissionInterface $permission
  *
  * @return GrantableRepository
  */
 public function deny(GrantableInterface $grantable, PermissionInterface $permission)
 {
     $this->permissions = null;
     return $this->repository->removePermission($grantable, $permission);
 }