public function __construct(User $identity, Article $article) { $this->article = $article; parent::__construct($identity); }
public function __construct(User $identity, Category $category) { $this->category = $category; parent::__construct($identity); }
/** * @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(); }
public function __construct(User $identity, File $file) { $this->file = $file; parent::__construct($identity); }
public function __construct(User $identity, Account $account) { $this->account = $account; parent::__construct($identity); }