1 | <?php |
||
15 | class DoctrineORMTokenRepository implements TokenRepositoryInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var EntityManager |
||
19 | */ |
||
20 | private $manager; |
||
21 | |||
22 | /** |
||
23 | * @var EntityRepository |
||
24 | */ |
||
25 | private $repository; |
||
26 | |||
27 | /** |
||
28 | * @param EntityManager $manager |
||
29 | * @param EntityRepository $repository |
||
30 | */ |
||
31 | 7 | public function __construct(EntityManager $manager, EntityRepository $repository) |
|
36 | |||
37 | /** |
||
38 | * @inheritdoc |
||
39 | */ |
||
40 | 5 | public function get($value, $purpose) |
|
61 | |||
62 | /** |
||
63 | * @inheritDoc |
||
64 | */ |
||
65 | public function findExisting($userClass, $userId, $purpose) |
||
75 | |||
76 | /** |
||
77 | * @inheritdoc |
||
78 | */ |
||
79 | 1 | public function create(Token $token) |
|
84 | |||
85 | /** |
||
86 | * @inheritdoc |
||
87 | */ |
||
88 | 1 | public function update(Token $token) |
|
93 | |||
94 | /** |
||
95 | * @inheritdoc |
||
96 | */ |
||
97 | public function exists($value, $purpose) |
||
114 | } |
||
115 |