* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ declare(strict_types=1); namespace PrestaShopBundle\Security\OAuth2\Repository; use League\OAuth2\Server\Entities\ClientEntityInterface; use League\OAuth2\Server\Entities\ScopeEntityInterface; use League\OAuth2\Server\Repositories\ScopeRepositoryInterface; /** * Repository class responsible for managing PrestaShop's Authorization Server scopes * Empty implementation for now because scopes are not used yet * * @experimental */ class NullScopeRepository implements ScopeRepositoryInterface { public function getScopeEntityByIdentifier($identifier): ?ScopeEntityInterface { return null; } public function finalizeScopes( array $scopes, $grantType, ClientEntityInterface $clientEntity, $userIdentifier = null ): array { return []; } }