Skip to content

Commit

Permalink
EZP-32259: Replaced "ezplatform" commands namespace with "ibexa"
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwojs committed Jan 1, 2021
1 parent 5bcdee9 commit fa8be5b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/bundle/Command/SystemInfoDumpCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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.
Expand Down Expand Up @@ -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',
])
Expand Down Expand Up @@ -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'];
}
}

0 comments on commit fa8be5b

Please sign in to comment.