From 763ae6dbde41cedc05399e8a08f56b2ad6fd9baf Mon Sep 17 00:00:00 2001 From: Lorenzo Ruozzi Date: Tue, 8 Oct 2024 10:31:22 +0200 Subject: [PATCH] Deprecates class and services --- config/services/checker.php | 1 + config/services/command.php | 1 + config/services/controller.php | 1 + config/services/generator.php | 1 + config/services/provider.php | 8 ++++++-- config/services/query_builder.php | 4 ++++ config/services/resolver.php | 5 ++++- config/services/serializer.php | 4 ++++ psalm.xml | 10 ++++++++++ src/Command/FeedGeneratorCommand.php | 2 +- src/Controller/FeedController.php | 3 +++ .../PrivateApiKeyNotFoundForChannelException.php | 3 +++ .../PublicApiKeyNotFoundForChannelException.php | 3 +++ src/Normalizer/CustomerNormalizer.php | 3 +++ src/Normalizer/OrderNormalizer.php | 3 +++ src/Normalizer/ProductNormalizer.php | 3 +++ src/Normalizer/TaxonNormalizer.php | 3 +++ src/QueryBuilder/CustomersQueryBuilderFactory.php | 3 +++ src/QueryBuilder/OrdersQueryBuilderFactory.php | 3 +++ src/QueryBuilder/ProductsQueryBuilderFactory.php | 3 +++ src/QueryBuilder/QueryBuilderFactoryInterface.php | 3 +++ src/QueryBuilder/TaxonsQueryBuilderFactory.php | 3 +++ src/Resolver/OrderResolver.php | 3 +++ src/Resolver/OrderResolverInterface.php | 3 +++ src/Resolver/PageResolver.php | 3 +++ src/Resolver/PageResolverInterface.php | 3 +++ src/Service/ChannelApiKeyChecker.php | 3 +++ src/Service/ChannelApiKeyCheckerInterface.php | 3 +++ src/Service/FeedGenerator.php | 3 +++ src/Service/FeedGeneratorInterface.php | 3 +++ src/Service/PrivateApiKeyProvider.php | 3 +++ src/Service/PrivateApiKeyProviderInterface.php | 3 +++ src/Service/PublicApiKeyProvider.php | 3 +++ src/Service/PublicApiKeyProviderInterface.php | 3 +++ 34 files changed, 105 insertions(+), 4 deletions(-) diff --git a/config/services/checker.php b/config/services/checker.php index bf9331e..86a3bcd 100644 --- a/config/services/checker.php +++ b/config/services/checker.php @@ -14,5 +14,6 @@ service('webgriffe_sylius_clerk.provider.public_api_key'), service('webgriffe_sylius_clerk.provider.private_api_key'), ]) + ->deprecate('webgriffe/sylius-clerk-plugin', '3.0', 'The "%service_id%" service is deprecated and will be removed in 4.0.') ; }; diff --git a/config/services/command.php b/config/services/command.php index c440a52..b5780af 100644 --- a/config/services/command.php +++ b/config/services/command.php @@ -18,6 +18,7 @@ '$router' => service('router'), '$logger' => service('monolog.logger'), ]) + ->deprecate('webgriffe/sylius-clerk-plugin', '3.0', 'The "%service_id%" service is deprecated and will be removed in 4.0.') ->tag('console.command') ; diff --git a/config/services/controller.php b/config/services/controller.php index a922220..bf5cd9a 100644 --- a/config/services/controller.php +++ b/config/services/controller.php @@ -21,6 +21,7 @@ service('webgriffe_sylius_clerk.provider.private_api_key'), service('webgriffe_sylius_clerk.checker.channel_enabled'), ]) + ->deprecate('webgriffe/sylius-clerk-plugin', '3.0', 'The "%service_id%" service is deprecated and will be removed in 4.0.') ->tag('controller.service_arguments') ->call('setContainer', [service('service_container')]) ; diff --git a/config/services/generator.php b/config/services/generator.php index 72670a4..9796fed 100644 --- a/config/services/generator.php +++ b/config/services/generator.php @@ -24,6 +24,7 @@ service(PageResolver::class), service('serializer'), ]) + ->deprecate('webgriffe/sylius-clerk-plugin', '3.0', 'The "%service_id%" service is deprecated and will be removed in 4.0.') ; $services->set('webgriffe_sylius_clerk_plugin.feed_generator.products', ResourceFeedGenerator::class) diff --git a/config/services/provider.php b/config/services/provider.php index 8e12eb0..2fd46f9 100644 --- a/config/services/provider.php +++ b/config/services/provider.php @@ -13,9 +13,13 @@ return static function (ContainerConfigurator $containerConfigurator) { $services = $containerConfigurator->services(); - $services->set('webgriffe_sylius_clerk.provider.private_api_key', PrivateApiKeyProvider::class); + $services->set('webgriffe_sylius_clerk.provider.private_api_key', PrivateApiKeyProvider::class) + ->deprecate('webgriffe/sylius-clerk-plugin', '3.0', 'The "%service_id%" service is deprecated and will be removed in 4.0.') + ; - $services->set('webgriffe_sylius_clerk.provider.public_api_key', PublicApiKeyProvider::class); + $services->set('webgriffe_sylius_clerk.provider.public_api_key', PublicApiKeyProvider::class) + ->deprecate('webgriffe/sylius-clerk-plugin', '3.0', 'The "%service_id%" service is deprecated and will be removed in 4.0.') + ; $services->set('webgriffe_sylius_clerk_plugin.provider.products', QueryBuilderResourceProvider::class) ->args([ diff --git a/config/services/query_builder.php b/config/services/query_builder.php index c6904c2..de5dcab 100644 --- a/config/services/query_builder.php +++ b/config/services/query_builder.php @@ -20,24 +20,28 @@ ->args([ service('sylius.repository.product'), ]) + ->deprecate('webgriffe/sylius-clerk-plugin', '3.0', 'The "%service_id%" service is deprecated and will be removed in 4.0.') ; $services->set(TaxonsQueryBuilderFactory::class) ->args([ service('sylius.repository.taxon'), ]) + ->deprecate('webgriffe/sylius-clerk-plugin', '3.0', 'The "%service_id%" service is deprecated and will be removed in 4.0.') ; $services->set(OrdersQueryBuilderFactory::class) ->args([ service('sylius.repository.order'), ]) + ->deprecate('webgriffe/sylius-clerk-plugin', '3.0', 'The "%service_id%" service is deprecated and will be removed in 4.0.') ; $services->set(CustomersQueryBuilderFactory::class) ->args([ service('sylius.repository.customer'), ]) + ->deprecate('webgriffe/sylius-clerk-plugin', '3.0', 'The "%service_id%" service is deprecated and will be removed in 4.0.') ; $services->set('webgriffe_sylius_clerk_plugin.query_builder.products', ProductsQueryBuilder::class) diff --git a/config/services/resolver.php b/config/services/resolver.php index bb3b5e7..3ebe93d 100644 --- a/config/services/resolver.php +++ b/config/services/resolver.php @@ -11,11 +11,14 @@ return static function (ContainerConfigurator $containerConfigurator) { $services = $containerConfigurator->services(); - $services->set(PageResolver::class); + $services->set(PageResolver::class) + ->deprecate('webgriffe/sylius-clerk-plugin', '3.0', 'The "%service_id%" service is deprecated and will be removed in 4.0.') + ; $services->set(OrderResolver::class) ->args([ service(OrdersQueryBuilderFactory::class), ]) + ->deprecate('webgriffe/sylius-clerk-plugin', '3.0', 'The "%service_id%" service is deprecated and will be removed in 4.0.') ; }; diff --git a/config/services/serializer.php b/config/services/serializer.php index 57648ac..b84405c 100644 --- a/config/services/serializer.php +++ b/config/services/serializer.php @@ -23,6 +23,7 @@ service('router'), service('liip_imagine.service.filter'), ]) + ->deprecate('webgriffe/sylius-clerk-plugin', '3.0', 'The "%service_id%" service is deprecated and will be removed in 4.0.') ->tag('serializer.normalizer', ['priority' => 120]) ; @@ -32,17 +33,20 @@ service('router'), service('sylius.repository.taxon'), ]) + ->deprecate('webgriffe/sylius-clerk-plugin', '3.0', 'The "%service_id%" service is deprecated and will be removed in 4.0.') ->tag('serializer.normalizer', ['priority' => 120]) ; $services->set(OrderNormalizer::class) ->deprecate('webgriffe/sylius-clerk-plugin', '3.0', 'Service "%service_id%" is deprecated and will be removed in the next major version.') ->tag('serializer.normalizer', ['priority' => 120]) + ->deprecate('webgriffe/sylius-clerk-plugin', '3.0', 'The "%service_id%" service is deprecated and will be removed in 4.0.') ; $services->set(CustomerNormalizer::class) ->deprecate('webgriffe/sylius-clerk-plugin', '3.0', 'Service "%service_id%" is deprecated and will be removed in the next major version.') ->tag('serializer.normalizer', ['priority' => 120]) + ->deprecate('webgriffe/sylius-clerk-plugin', '3.0', 'The "%service_id%" service is deprecated and will be removed in 4.0.') ; $services->set('webgriffe_sylius_clerk_plugin.normalizer.product', V2ProductNormalizer::class) diff --git a/psalm.xml b/psalm.xml index 17cff45..a570cbb 100644 --- a/psalm.xml +++ b/psalm.xml @@ -14,6 +14,16 @@ + + + + + + + + + + diff --git a/src/Command/FeedGeneratorCommand.php b/src/Command/FeedGeneratorCommand.php index 4a3f2b8..005f685 100644 --- a/src/Command/FeedGeneratorCommand.php +++ b/src/Command/FeedGeneratorCommand.php @@ -18,7 +18,7 @@ use Webmozart\Assert\Assert; /** - * @deprecated + * @deprecated This command is deprecated and will be removed in the next major version. */ final class FeedGeneratorCommand extends Command { diff --git a/src/Controller/FeedController.php b/src/Controller/FeedController.php index 9a22f92..aa1f210 100644 --- a/src/Controller/FeedController.php +++ b/src/Controller/FeedController.php @@ -16,6 +16,9 @@ use Webgriffe\SyliusClerkPlugin\Service\FeedGeneratorInterface; use Webgriffe\SyliusClerkPlugin\Service\PrivateApiKeyProviderInterface; +/** + * @deprecated This controller is deprecated and will be removed in the next major version. + */ final class FeedController extends AbstractController { private ?ChannelApiKeyCheckerInterface $channelApiKeyChecker; diff --git a/src/Exception/PrivateApiKeyNotFoundForChannelException.php b/src/Exception/PrivateApiKeyNotFoundForChannelException.php index 6ea2b6c..8de0f14 100644 --- a/src/Exception/PrivateApiKeyNotFoundForChannelException.php +++ b/src/Exception/PrivateApiKeyNotFoundForChannelException.php @@ -6,6 +6,9 @@ use Sylius\Component\Core\Model\ChannelInterface; +/** + * @deprecated Use \Webgriffe\SyliusClerkPlugin\Provider\Exception\ChannelApiKeysNotProvidedException instead + */ final class PrivateApiKeyNotFoundForChannelException extends \RuntimeException { public function __construct(ChannelInterface $channel) diff --git a/src/Exception/PublicApiKeyNotFoundForChannelException.php b/src/Exception/PublicApiKeyNotFoundForChannelException.php index 2fcbed6..4cb3a99 100644 --- a/src/Exception/PublicApiKeyNotFoundForChannelException.php +++ b/src/Exception/PublicApiKeyNotFoundForChannelException.php @@ -6,6 +6,9 @@ use Sylius\Component\Core\Model\ChannelInterface; +/** + * @deprecated Use \Webgriffe\SyliusClerkPlugin\Provider\Exception\ChannelApiKeysNotProvidedException instead + */ final class PublicApiKeyNotFoundForChannelException extends \RuntimeException { public function __construct(ChannelInterface $channel) diff --git a/src/Normalizer/CustomerNormalizer.php b/src/Normalizer/CustomerNormalizer.php index a1b6593..c1bf283 100644 --- a/src/Normalizer/CustomerNormalizer.php +++ b/src/Normalizer/CustomerNormalizer.php @@ -9,6 +9,9 @@ use Symfony\Component\Serializer\Normalizer\NormalizerInterface; use Webgriffe\SyliusClerkPlugin\Service\FeedGenerator; +/** + * @deprecated This class is deprecated and will be removed in the next major version. Use the new Clerk feed v2 normalizer instead. + */ final class CustomerNormalizer implements NormalizerInterface { public function normalize($object, string $format = null, array $context = []) diff --git a/src/Normalizer/OrderNormalizer.php b/src/Normalizer/OrderNormalizer.php index d01327e..a4d4010 100644 --- a/src/Normalizer/OrderNormalizer.php +++ b/src/Normalizer/OrderNormalizer.php @@ -10,6 +10,9 @@ use Symfony\Component\Serializer\Normalizer\NormalizerInterface; use Webgriffe\SyliusClerkPlugin\Service\FeedGenerator; +/** + * @deprecated This class is deprecated and will be removed in the next major version. Use the new Clerk feed v2 normalizer instead. + */ final class OrderNormalizer implements NormalizerInterface { public function normalize($object, string $format = null, array $context = []) diff --git a/src/Normalizer/ProductNormalizer.php b/src/Normalizer/ProductNormalizer.php index 80699ec..676fc71 100644 --- a/src/Normalizer/ProductNormalizer.php +++ b/src/Normalizer/ProductNormalizer.php @@ -18,6 +18,9 @@ use Webgriffe\SyliusClerkPlugin\Service\FeedGenerator; use Webmozart\Assert\Assert; +/** + * @deprecated This class is deprecated and will be removed in the next major version. Use the new Clerk feed v2 normalizer instead. + */ final class ProductNormalizer implements NormalizerInterface { public function __construct( diff --git a/src/Normalizer/TaxonNormalizer.php b/src/Normalizer/TaxonNormalizer.php index b2fdbe6..2026f81 100644 --- a/src/Normalizer/TaxonNormalizer.php +++ b/src/Normalizer/TaxonNormalizer.php @@ -14,6 +14,9 @@ use Webgriffe\SyliusClerkPlugin\Service\FeedGenerator; use Webmozart\Assert\Assert; +/** + * @deprecated This class is deprecated and will be removed in the next major version. Use the new Clerk feed v2 normalizer instead. + */ final class TaxonNormalizer implements NormalizerInterface { public function __construct( diff --git a/src/QueryBuilder/CustomersQueryBuilderFactory.php b/src/QueryBuilder/CustomersQueryBuilderFactory.php index 832579e..bf263c1 100644 --- a/src/QueryBuilder/CustomersQueryBuilderFactory.php +++ b/src/QueryBuilder/CustomersQueryBuilderFactory.php @@ -10,6 +10,9 @@ use Sylius\Component\Core\Repository\CustomerRepositoryInterface; use Webmozart\Assert\Assert; +/** + * @deprecated This class is deprecated and will be removed in the next major version. Use query builder event on v2 feed generation instead. + */ final class CustomersQueryBuilderFactory implements QueryBuilderFactoryInterface { public function __construct( diff --git a/src/QueryBuilder/OrdersQueryBuilderFactory.php b/src/QueryBuilder/OrdersQueryBuilderFactory.php index d3bf584..78416f9 100644 --- a/src/QueryBuilder/OrdersQueryBuilderFactory.php +++ b/src/QueryBuilder/OrdersQueryBuilderFactory.php @@ -10,6 +10,9 @@ use Sylius\Component\Core\Repository\OrderRepositoryInterface; use Webmozart\Assert\Assert; +/** + * @deprecated This class is deprecated and will be removed in the next major version. Use query builder event on v2 feed generation instead. + */ final class OrdersQueryBuilderFactory implements QueryBuilderFactoryInterface { public function __construct(private OrderRepositoryInterface $orderRepository) diff --git a/src/QueryBuilder/ProductsQueryBuilderFactory.php b/src/QueryBuilder/ProductsQueryBuilderFactory.php index 302480e..41bab22 100644 --- a/src/QueryBuilder/ProductsQueryBuilderFactory.php +++ b/src/QueryBuilder/ProductsQueryBuilderFactory.php @@ -10,6 +10,9 @@ use Sylius\Component\Locale\Model\LocaleInterface; use Webmozart\Assert\Assert; +/** + * @deprecated This class is deprecated and will be removed in the next major version. Use query builder event on v2 feed generation instead. + */ final class ProductsQueryBuilderFactory implements QueryBuilderFactoryInterface { public function __construct(private ProductRepositoryInterface $productRepository) diff --git a/src/QueryBuilder/QueryBuilderFactoryInterface.php b/src/QueryBuilder/QueryBuilderFactoryInterface.php index 4690845..237399b 100644 --- a/src/QueryBuilder/QueryBuilderFactoryInterface.php +++ b/src/QueryBuilder/QueryBuilderFactoryInterface.php @@ -7,6 +7,9 @@ use Doctrine\ORM\QueryBuilder; use Sylius\Component\Core\Model\ChannelInterface; +/** + * @deprecated This class is deprecated and will be removed in the next major version. Use query builder event on v2 feed generation instead. + */ interface QueryBuilderFactoryInterface { public function createQueryBuilder(ChannelInterface $channel): QueryBuilder; diff --git a/src/QueryBuilder/TaxonsQueryBuilderFactory.php b/src/QueryBuilder/TaxonsQueryBuilderFactory.php index ad9c96d..f3d8518 100644 --- a/src/QueryBuilder/TaxonsQueryBuilderFactory.php +++ b/src/QueryBuilder/TaxonsQueryBuilderFactory.php @@ -8,6 +8,9 @@ use Sylius\Component\Core\Model\ChannelInterface; use Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface; +/** + * @deprecated This class is deprecated and will be removed in the next major version. Use query builder event on v2 feed generation instead. + */ final class TaxonsQueryBuilderFactory implements QueryBuilderFactoryInterface { public function __construct(private TaxonRepositoryInterface $taxonRepository) diff --git a/src/Resolver/OrderResolver.php b/src/Resolver/OrderResolver.php index 9702c75..2d4cb29 100644 --- a/src/Resolver/OrderResolver.php +++ b/src/Resolver/OrderResolver.php @@ -8,6 +8,9 @@ use Webgriffe\SyliusClerkPlugin\QueryBuilder\QueryBuilderFactoryInterface; use Webmozart\Assert\Assert; +/** + * @deprecated This class is deprecated and will be removed in the next major version. Use resource provider on v2 feed generation instead. + */ final class OrderResolver implements OrderResolverInterface { public function __construct( diff --git a/src/Resolver/OrderResolverInterface.php b/src/Resolver/OrderResolverInterface.php index 4e4006a..f96f746 100644 --- a/src/Resolver/OrderResolverInterface.php +++ b/src/Resolver/OrderResolverInterface.php @@ -6,6 +6,9 @@ use Sylius\Component\Core\Model\ChannelInterface; +/** + * @deprecated This class is deprecated and will be removed in the next major version. Use resource provider on v2 feed generation instead. + */ interface OrderResolverInterface { public function createOrdersList(ChannelInterface $channel): array; diff --git a/src/Resolver/PageResolver.php b/src/Resolver/PageResolver.php index 689cfae..8fde06e 100644 --- a/src/Resolver/PageResolver.php +++ b/src/Resolver/PageResolver.php @@ -4,6 +4,9 @@ namespace Webgriffe\SyliusClerkPlugin\Resolver; +/** + * @deprecated This class is deprecated and will be removed in the next major version. Use resource provider on v2 feed generation instead. + */ final class PageResolver implements PageResolverInterface { public function createPageList(): array diff --git a/src/Resolver/PageResolverInterface.php b/src/Resolver/PageResolverInterface.php index 87afeaf..890cba3 100644 --- a/src/Resolver/PageResolverInterface.php +++ b/src/Resolver/PageResolverInterface.php @@ -4,6 +4,9 @@ namespace Webgriffe\SyliusClerkPlugin\Resolver; +/** + * @deprecated This class is deprecated and will be removed in the next major version. Use resource provider on v2 feed generation instead. + */ interface PageResolverInterface { public function createPageList(): array; diff --git a/src/Service/ChannelApiKeyChecker.php b/src/Service/ChannelApiKeyChecker.php index 12ae58c..292c3f5 100644 --- a/src/Service/ChannelApiKeyChecker.php +++ b/src/Service/ChannelApiKeyChecker.php @@ -8,6 +8,9 @@ use Webgriffe\SyliusClerkPlugin\Exception\PrivateApiKeyNotFoundForChannelException; use Webgriffe\SyliusClerkPlugin\Exception\PublicApiKeyNotFoundForChannelException; +/** + * @deprecated This class is deprecated and will be removed in the next major version. + */ final class ChannelApiKeyChecker implements ChannelApiKeyCheckerInterface { public function __construct( diff --git a/src/Service/ChannelApiKeyCheckerInterface.php b/src/Service/ChannelApiKeyCheckerInterface.php index 4183eb4..d71e2ab 100644 --- a/src/Service/ChannelApiKeyCheckerInterface.php +++ b/src/Service/ChannelApiKeyCheckerInterface.php @@ -6,6 +6,9 @@ use Sylius\Component\Core\Model\ChannelInterface; +/** + * @deprecated This class is deprecated and will be removed in the next major version. + */ interface ChannelApiKeyCheckerInterface { public function check(ChannelInterface $channel): bool; diff --git a/src/Service/FeedGenerator.php b/src/Service/FeedGenerator.php index fff31ad..db167a3 100644 --- a/src/Service/FeedGenerator.php +++ b/src/Service/FeedGenerator.php @@ -15,6 +15,9 @@ use Webgriffe\SyliusClerkPlugin\Resolver\OrderResolverInterface; use Webgriffe\SyliusClerkPlugin\Resolver\PageResolverInterface; +/** + * @deprecated This class is deprecated and will be removed in the next major version. + */ final class FeedGenerator implements FeedGeneratorInterface { public const NORMALIZATION_FORMAT = 'clerk_array'; diff --git a/src/Service/FeedGeneratorInterface.php b/src/Service/FeedGeneratorInterface.php index 48fe5e9..6daa892 100644 --- a/src/Service/FeedGeneratorInterface.php +++ b/src/Service/FeedGeneratorInterface.php @@ -6,6 +6,9 @@ use Sylius\Component\Core\Model\ChannelInterface; +/** + * @deprecated This class is deprecated and will be removed in the next major version. + */ interface FeedGeneratorInterface { public function generate(ChannelInterface $channel): string; diff --git a/src/Service/PrivateApiKeyProvider.php b/src/Service/PrivateApiKeyProvider.php index ba133fc..d08a2ab 100644 --- a/src/Service/PrivateApiKeyProvider.php +++ b/src/Service/PrivateApiKeyProvider.php @@ -7,6 +7,9 @@ use Sylius\Component\Core\Model\ChannelInterface; use Webgriffe\SyliusClerkPlugin\Exception\PrivateApiKeyNotFoundForChannelException; +/** + * @deprecated This class is deprecated and will be removed in the next major version. + */ final class PrivateApiKeyProvider implements PrivateApiKeyProviderInterface { public function __construct(private array $clerkStores) diff --git a/src/Service/PrivateApiKeyProviderInterface.php b/src/Service/PrivateApiKeyProviderInterface.php index 09e431f..b7dbb7f 100644 --- a/src/Service/PrivateApiKeyProviderInterface.php +++ b/src/Service/PrivateApiKeyProviderInterface.php @@ -7,6 +7,9 @@ use Sylius\Component\Core\Model\ChannelInterface; use Webgriffe\SyliusClerkPlugin\Exception\PrivateApiKeyNotFoundForChannelException; +/** + * @deprecated This class is deprecated and will be removed in the next major version. + */ interface PrivateApiKeyProviderInterface { /** diff --git a/src/Service/PublicApiKeyProvider.php b/src/Service/PublicApiKeyProvider.php index 56ee68c..f47b126 100644 --- a/src/Service/PublicApiKeyProvider.php +++ b/src/Service/PublicApiKeyProvider.php @@ -7,6 +7,9 @@ use Sylius\Component\Core\Model\ChannelInterface; use Webgriffe\SyliusClerkPlugin\Exception\PublicApiKeyNotFoundForChannelException; +/** + * @deprecated This class is deprecated and will be removed in the next major version. + */ final class PublicApiKeyProvider implements PublicApiKeyProviderInterface { public function __construct(private array $clerkStores) diff --git a/src/Service/PublicApiKeyProviderInterface.php b/src/Service/PublicApiKeyProviderInterface.php index 8c06877..f04468d 100644 --- a/src/Service/PublicApiKeyProviderInterface.php +++ b/src/Service/PublicApiKeyProviderInterface.php @@ -7,6 +7,9 @@ use Sylius\Component\Core\Model\ChannelInterface; use Webgriffe\SyliusClerkPlugin\Exception\PublicApiKeyNotFoundForChannelException; +/** + * @deprecated This class is deprecated and will be removed in the next major version. + */ interface PublicApiKeyProviderInterface { /**