1 | <?php |
||
11 | class AccessTokenRepository extends EntityRepository implements AccessTokenRepositoryInterface |
||
12 | { |
||
13 | /** |
||
14 | * {@inheritdoc} |
||
15 | */ |
||
16 | public function persistNewAccessToken(AccessTokenEntityInterface $accessTokenEntity) |
||
17 | { |
||
18 | $this->_em->persist($accessTokenEntity); |
||
19 | $this->_em->flush(); |
||
20 | return $accessTokenEntity; |
||
21 | } |
||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | public function revokeAccessToken($tokenId) |
||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | public function isAccessTokenRevoked($tokenId) |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | public function getNewToken(ClientEntityInterface $clientEntity, array $scopes, $userIdentifier = null) |
||
44 | } |