public function __construct(User $user, Role $role, EntityRepo $entityRepo) { $this->user = $user; $this->role = $role; $this->entityRepo = $entityRepo; }