Exemple #1
0
 public function __construct(User $identity, Article $article)
 {
     $this->article = $article;
     parent::__construct($identity);
 }
Exemple #2
0
 public function __construct(User $identity, Category $category)
 {
     $this->category = $category;
     parent::__construct($identity);
 }
Exemple #3
0
 /**
  * @param Role    $role
  * @param Actions $actions
  * @param bool    $cascade Should this authorization cascade?
  * @param string  $entityClass
  * @param int     $entityId
  */
 private function __construct(Role $role, Actions $actions, $cascade, $entityClass, $entityId = null)
 {
     $this->role = $role;
     $this->securityIdentity = $role->getSecurityIdentity();
     $this->actions = $actions;
     $this->cascadable = $cascade;
     $this->entityClass = $entityClass;
     $this->entityId = $entityId;
     $this->childAuthorizations = new ArrayCollection();
 }
Exemple #4
0
 public function __construct(User $identity, File $file)
 {
     $this->file = $file;
     parent::__construct($identity);
 }
Exemple #5
0
 public function __construct(User $identity, Account $account)
 {
     $this->account = $account;
     parent::__construct($identity);
 }