Skip to content

Commit 2f92059

Browse files
authored
Fix deprecation of EsSyncCommand (#285)
* Fix deprecation of `EsSyncCommand` * Fix version
1 parent dab7a5b commit 2f92059

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Command/IndexService/EsSyncCommand.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@ protected function configure(): void
3535
{
3636
parent::configure();
3737

38-
trigger_deprecation(
39-
'pimcore/ecommerce-framework-bundle',
40-
'2.0.0',
41-
'The command "%s" is deprecated and will be removed in a future version. Please use the ecommerce:indexservice:search-index-sync instead.',
42-
$this->getName()
43-
);
44-
4538
$this
4639
->setName('ecommerce:indexservice:elasticsearch-sync')
4740
->setDescription(
@@ -60,6 +53,13 @@ protected function configure(): void
6053

6154
protected function execute(InputInterface $input, OutputInterface $output): int
6255
{
56+
trigger_deprecation(
57+
'pimcore/ecommerce-framework-bundle',
58+
'1.3',
59+
'The command "%s" is deprecated and will be removed in a future version. Please use the ecommerce:indexservice:search-index-sync instead.',
60+
$this->getName()
61+
);
62+
6363
$mode = $input->getArgument('mode');
6464
$tenantName = $input->getOption('tenant');
6565

0 commit comments

Comments
 (0)