From 810fad8c535ebc7f2d210a37dbee1a0f9124e3c8 Mon Sep 17 00:00:00 2001 From: Jacob Dreesen Date: Tue, 25 Nov 2025 18:00:41 +0100 Subject: [PATCH 1/2] Fix deprecation of `EsSyncCommand` --- src/Command/IndexService/EsSyncCommand.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Command/IndexService/EsSyncCommand.php b/src/Command/IndexService/EsSyncCommand.php index 8b965c35..925e4ee0 100644 --- a/src/Command/IndexService/EsSyncCommand.php +++ b/src/Command/IndexService/EsSyncCommand.php @@ -35,13 +35,6 @@ protected function configure(): void { parent::configure(); - trigger_deprecation( - 'pimcore/ecommerce-framework-bundle', - '2.0.0', - 'The command "%s" is deprecated and will be removed in a future version. Please use the ecommerce:indexservice:search-index-sync instead.', - $this->getName() - ); - $this ->setName('ecommerce:indexservice:elasticsearch-sync') ->setDescription( @@ -60,6 +53,13 @@ protected function configure(): void protected function execute(InputInterface $input, OutputInterface $output): int { + trigger_deprecation( + 'pimcore/ecommerce-framework-bundle', + '2.0.0', + 'The command "%s" is deprecated and will be removed in a future version. Please use the ecommerce:indexservice:search-index-sync instead.', + $this->getName() + ); + $mode = $input->getArgument('mode'); $tenantName = $input->getOption('tenant'); From 9ba478778b58c5ef70034336354a0eced14e6b7b Mon Sep 17 00:00:00 2001 From: Jacob Dreesen Date: Tue, 25 Nov 2025 18:04:21 +0100 Subject: [PATCH 2/2] Fix version --- src/Command/IndexService/EsSyncCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command/IndexService/EsSyncCommand.php b/src/Command/IndexService/EsSyncCommand.php index 925e4ee0..db65b7bf 100644 --- a/src/Command/IndexService/EsSyncCommand.php +++ b/src/Command/IndexService/EsSyncCommand.php @@ -55,7 +55,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int { trigger_deprecation( 'pimcore/ecommerce-framework-bundle', - '2.0.0', + '1.3', 'The command "%s" is deprecated and will be removed in a future version. Please use the ecommerce:indexservice:search-index-sync instead.', $this->getName() );