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}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function getNewToken(ClientEntityInterface $clientEntity, array $scopes, $userIdentifier = null)
|
public function getNewToken()
|
||||||
{
|
{
|
||||||
$accessToken = new AccessTokenEntity();
|
return new AccessTokenEntity();
|
||||||
$accessToken->setClient($clientEntity);
|
|
||||||
foreach ($scopes as $scope) {
|
|
||||||
$accessToken->addScope($scope);
|
|
||||||
}
|
|
||||||
$accessToken->setUserIdentifier($userIdentifier);
|
|
||||||
|
|
||||||
return $accessToken;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user