芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/store.kwesioben.com/vendor/laravel/passport/src/Bridge/RefreshTokenRepository.php
events = $events; $this->refreshTokenRepository = $refreshTokenRepository; } /** * {@inheritdoc} */ public function getNewRefreshToken() { return new RefreshToken; } /** * {@inheritdoc} */ public function persistNewRefreshToken(RefreshTokenEntityInterface $refreshTokenEntity) { $this->refreshTokenRepository->create([ 'id' => $id = $refreshTokenEntity->getIdentifier(), 'access_token_id' => $accessTokenId = $refreshTokenEntity->getAccessToken()->getIdentifier(), 'revoked' => false, 'expires_at' => $refreshTokenEntity->getExpiryDateTime(), ]); $this->events->dispatch(new RefreshTokenCreated($id, $accessTokenId)); } /** * {@inheritdoc} */ public function revokeRefreshToken($tokenId) { $this->refreshTokenRepository->revokeRefreshToken($tokenId); } /** * {@inheritdoc} */ public function isRefreshTokenRevoked($tokenId) { return $this->refreshTokenRepository->isRefreshTokenRevoked($tokenId); } }