From fa8be5b459019da728610d8b24a6e3fdc84acff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20W=C3=B3js?= Date: Fri, 1 Jan 2021 15:17:24 +0100 Subject: [PATCH] EZP-32259: Replaced "ezplatform" commands namespace with "ibexa" --- src/bundle/Command/SystemInfoDumpCommand.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/bundle/Command/SystemInfoDumpCommand.php b/src/bundle/Command/SystemInfoDumpCommand.php index caf02b3c..12ff4bba 100644 --- a/src/bundle/Command/SystemInfoDumpCommand.php +++ b/src/bundle/Command/SystemInfoDumpCommand.php @@ -6,6 +6,7 @@ */ namespace EzSystems\EzSupportToolsBundle\Command; +use eZ\Bundle\EzPublishCoreBundle\Command\BackwardCompatibleCommand; use EzSystems\EzSupportToolsBundle\SystemInfo\SystemInfoCollectorRegistry; use EzSystems\EzSupportToolsBundle\SystemInfo\OutputFormatRegistry; use Symfony\Component\Console\Command\Command; @@ -14,7 +15,7 @@ use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; -class SystemInfoDumpCommand extends Command +class SystemInfoDumpCommand extends Command implements BackwardCompatibleCommand { /** * System info collector registry. @@ -44,8 +45,9 @@ public function __construct(SystemInfoCollectorRegistry $systemInfoCollectorRegi protected function configure() { $this - ->setName('ez-support-tools:dump-info') + ->setName('ibexa:system-info:dump') ->setAliases([ + 'ez-support-tools:dump-info', 'ibexa:dump-info', 'ibexa:info', ]) @@ -116,4 +118,12 @@ protected function execute(InputInterface $input, OutputInterface $output) return Command::SUCCESS; } + + /** + * @return string[] + */ + public function getDeprecatedAliases(): array + { + return ['ez-support-tools:dump-info']; + } }