Example #1
0
 /**
  * Create a new manager
  *
  * @access public
  * @param EntityInterface $entity An object entity for which we're authorizing actions
  * @return void
  */
 public function __construct(EntityInterface $entity)
 {
     $this->entity = $entity;
     $this->roles = array_map('strtolower', $this->entity->getRoles());
 }