mirror of
https://github.com/elyby/oauth2-server.git
synced 2026-12-01 03:33:25 +05:30
Remove redundant parameters in example
This commit is contained in:
1 parent
a6b7a5cedc
commit
9a93dca05c
1 file changed
+2
-9
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user