Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBX-8224: Dropped BackwardCompatibleCommand #48

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions src/bundle/Command/MigrateLegacyMatrixCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

use Doctrine\DBAL\Connection;
use Exception;
use Ibexa\Bundle\Core\Command\BackwardCompatibleCommand;
use Ibexa\Contracts\Core\Persistence\Content\FieldValue;
use Ibexa\Contracts\Core\Persistence\Content\Type\FieldDefinition;
use Ibexa\Core\Persistence\Legacy\Content\StorageFieldDefinition;
Expand All @@ -24,12 +23,10 @@
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;

class MigrateLegacyMatrixCommand extends Command implements BackwardCompatibleCommand
class MigrateLegacyMatrixCommand extends Command
{
private const DEFAULT_ITERATION_COUNT = 1000;

private const EZMATRIX_IDENTIFIER = 'ezmatrix';

private const CONFIRMATION_ANSWER = 'yes';

/** @var \Doctrine\DBAL\Connection */
Expand All @@ -53,7 +50,6 @@ protected function configure()
{
$this
->setName('ibexa:migrate:legacy_matrix')
->setAliases($this->getDeprecatedAliases())
->addOption(
'iteration-count',
'c',
Expand Down Expand Up @@ -346,12 +342,4 @@ protected function getProgressBar(int $maxSteps, OutputInterface $output): Progr

return $progressBar;
}

/**
* @return string[]
*/
public function getDeprecatedAliases(): array
{
return ['ezplatform:migrate:legacy_matrix'];
}
}
Loading