[ 'description' => 'Basic details about you', ], 'email' => [ 'description' => 'Your email address', ], ]; if (array_key_exists($scopeIdentifier, $scopes) === false) { return; } $scope = new ScopeEntity(); $scope->setIdentifier($scopeIdentifier); return $scope; } /** * {@inheritdoc} */ public function finalizeScopes( array $scopes, $grantType, ClientEntityInterface $clientEntity, $userIdentifier = null ) { return $scopes; } }