]> git.immae.eu Git - github/wallabag/wallabag.git/blob - src/Wallabag/ApiBundle/Repository/AccessTokenRepository.php
Add client_credentials as grant_type
[github/wallabag/wallabag.git] / src / Wallabag / ApiBundle / Repository / AccessTokenRepository.php
1 <?php
2
3 namespace Wallabag\ApiBundle\Repository;
4
5 use Doctrine\ORM\EntityRepository;
6
7
8 class AccessTokenRepository extends EntityRepository
9 {
10 public function findAppsByUser($userId)
11 {
12 $qb = $this->createQueryBuilder('a')
13 ->innerJoin('a.client', 'c')
14 ->addSelect('c')
15 ->where('a.user =:userId')->setParameter('userId', $userId);
16 return $qb->getQuery()->getResult();
17 }
18 }