diff --git a/src/Command/IndexService/EsSyncCommand.php b/src/Command/IndexService/EsSyncCommand.php index 8b965c35..db65b7bf 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', + '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() + ); + $mode = $input->getArgument('mode'); $tenantName = $input->getOption('tenant');