| 1 | <?php |
||
| 11 | class TokenLoader implements TokenLoaderInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var TokenRepository |
||
| 15 | */ |
||
| 16 | protected $tokenRepository; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Construct. |
||
| 20 | * |
||
| 21 | * @param TokenRepository $tokenRepository |
||
| 22 | */ |
||
| 23 | public function __construct(TokenRepository $tokenRepository) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @see TokenLoaderInterface::retrieveByHash() |
||
| 30 | */ |
||
| 31 | public function retrieveByHash($hash) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @see TokenLoaderInterface::retrieveExpired() |
||
| 44 | */ |
||
| 45 | public function retrieveExpired(\DateTime $datetime) |
||
| 55 | } |
||
| 56 |