Remove redundant parameters in example

This commit is contained in:
Mark 2016-04-20 16:52:54 +09:00
parent a6b7a5cedc
commit 9a93dca05c

View File

@ -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();
}
}