mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-22 21:19:46 +05:30
Remove redundant parameters in example
This commit is contained in:
parent
a6b7a5cedc
commit
9a93dca05c
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user