From 9a93dca05c4240ccc6a9bb99151b702ae5872263 Mon Sep 17 00:00:00 2001 From: Mark Date: Wed, 20 Apr 2016 16:52:54 +0900 Subject: [PATCH] Remove redundant parameters in example --- examples/src/Repositories/AccessTokenRepository.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/examples/src/Repositories/AccessTokenRepository.php b/examples/src/Repositories/AccessTokenRepository.php index d7736c76..12386f2c 100644 --- a/examples/src/Repositories/AccessTokenRepository.php +++ b/examples/src/Repositories/AccessTokenRepository.php @@ -43,15 +43,8 @@ class AccessTokenRepository implements AccessTokenRepositoryInterface /** * {@inheritdoc} */ - public function getNewToken(ClientEntityInterface $clientEntity, array $scopes, $userIdentifier = null) + public function getNewToken() { - $accessToken = new AccessTokenEntity(); - $accessToken->setClient($clientEntity); - foreach ($scopes as $scope) { - $accessToken->addScope($scope); - } - $accessToken->setUserIdentifier($userIdentifier); - - return $accessToken; + return new AccessTokenEntity(); } }