Revert "Remove redundant parameters in example" #553

This reverts commit 9a93dca05c.
This commit is contained in:
Alex Bilbie
2016-05-04 09:07:50 +01:00
parent cf63403585
commit db055f790d
3 changed files with 16 additions and 4 deletions

View File

@@ -295,7 +295,7 @@ abstract class AbstractGrant implements GrantTypeInterface
$userIdentifier,
array $scopes = []
) {
$accessToken = $this->accessTokenRepository->getNewToken();
$accessToken = $this->accessTokenRepository->getNewToken($client, $scopes, $userIdentifier);
$accessToken->setClient($client);
$accessToken->setUserIdentifier($userIdentifier);
$accessToken->setIdentifier($this->generateUniqueIdentifier());