From 5cba35456fb3c548e7eb71466e60bc1d4c34e86b Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Sat, 9 Apr 2016 15:09:22 +0100 Subject: [PATCH] Updated access token repository example --- examples/src/Entities/AccessTokenEntity.php | 13 +++++++ .../Repositories/AccessTokenRepository.php | 37 ++++++++++++------- 2 files changed, 36 insertions(+), 14 deletions(-) create mode 100644 examples/src/Entities/AccessTokenEntity.php diff --git a/examples/src/Entities/AccessTokenEntity.php b/examples/src/Entities/AccessTokenEntity.php new file mode 100644 index 00000000..e1dd1a02 --- /dev/null +++ b/examples/src/Entities/AccessTokenEntity.php @@ -0,0 +1,13 @@ +setClient($clientEntity); + foreach ($scopes as $scope) { + $accessToken->addScope($scope); + } + $accessToken->setUserIdentifier($userIdentifier); + + return $accessToken; } }