$scope) { if ($scope->getIdentifier() === PublicScopeRepository::OFFLINE_ACCESS) { unset($scopes[$i]); $this->getEmitter()->emit(new RequestedRefreshToken()); } } return parent::issueAccessToken($accessTokenTTL, $client, $userIdentifier, $scopes); } }