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

Remove unmaintained symfony libraries #1368

Closed
wants to merge 10 commits into from
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"doctrine/deprecations": "^0.5.3 || ^1",
"doctrine/event-manager": "^1.2 || ^2.0",
"psr/log": "^1.1.3 || ^2 || ^3",
"symfony/console": "^4.4.16 || ^5.4 || ^6.0",
"symfony/stopwatch": "^4.4 || ^5.4 || ^6.0",
"symfony/var-exporter": "^6.2"
"symfony/console": "^5.4 || ^6.0 || ^7.0",
"symfony/stopwatch": "^5.4 || ^6.0 || ^7.0",
"symfony/var-exporter": "^6.2 || ^7.0"
},
"require-dev": {
"ext-pdo_sqlite": "*",
Expand All @@ -46,9 +46,9 @@
"phpstan/phpstan-strict-rules": "^1.4",
"phpstan/phpstan-symfony": "^1.3",
"phpunit/phpunit": "^10.3",
"symfony/cache": "^4.4 || ^5.4 || ^6.0",
"symfony/process": "^4.4 || ^5.4 || ^6.0",
"symfony/yaml": "^4.4 || ^5.4 || ^6.0"
"symfony/cache": "^5.4 || ^6.0 || ^7.0",
"symfony/process": "^5.4 || ^6.0 || ^7.0",
"symfony/yaml": "^5.4 || ^6.0 || ^7.0"
},
"conflict": {
"doctrine/orm": "<2.12"
Expand Down
2 changes: 1 addition & 1 deletion download-box.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash

if [ ! -f box.phar ]; then
wget https://github.com/box-project/box/releases/download/4.3.7/box.phar -O box.phar
wget https://github.com/box-project/box/releases/download/4.4.0/box.phar -O box.phar
fi
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@
#[AsCommand(name: 'migrations:current', description: 'Outputs the current version')]
final class CurrentCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:current';

protected function configure(): void
{
$this
->setName('migrations:current')
->setAliases(['current'])
->setDescription('Outputs the current version');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,12 @@
#[AsCommand(name: 'migrations:diff', description: 'Generate a migration by comparing your current database to your mapping information.')]
final class DiffCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:diff';

protected function configure(): void
{
parent::configure();

$this
->setName('migrations:diff')
->setAliases(['diff'])
->setDescription('Generate a migration by comparing your current database to your mapping information.')
->setHelp(<<<'EOT'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,12 @@
#[AsCommand(name: 'migrations:dump-schema', description: 'Dump the schema for your database to a migration.')]
final class DumpSchemaCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:dump-schema';

protected function configure(): void
{
parent::configure();

$this
->setName('migrations:dump-schema')
->setAliases(['dump-schema'])
->setDescription('Dump the schema for your database to a migration.')
->setHelp(<<<'EOT'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@
#[AsCommand(name: 'migrations:execute', description: 'Execute one or more migration versions up or down manually.')]
final class ExecuteCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:execute';

protected function configure(): void
{
$this
->setName('migrations:execute')
->setAliases(['execute'])
->setDescription(
'Execute one or more migration versions up or down manually.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@
#[AsCommand(name: 'migrations:generate', description: 'Generate a blank migration class.')]
final class GenerateCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:generate';

protected function configure(): void
{
$this
->setName('migrations:generate')
->setAliases(['generate'])
->setDescription('Generate a blank migration class.')
->addOption(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@
#[AsCommand(name: 'migrations:latest', description: 'Outputs the latest version')]
final class LatestCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:latest';

protected function configure(): void
{
$this
->setName('migrations:latest')
->setAliases(['latest'])
->setDescription('Outputs the latest version');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@
#[AsCommand(name: 'migrations:list', description: 'Display a list of all available migrations and their status.')]
final class ListCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:list';

protected function configure(): void
{
$this
->setName('migrations:list')
->setAliases(['list-migrations'])
->setDescription('Display a list of all available migrations and their status.')
->setHelp(<<<'EOT'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,10 @@
#[AsCommand(name: 'migrations:migrate', description: 'Execute a migration to a specified version or the latest available version.')]
final class MigrateCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:migrate';

protected function configure(): void
{
$this
->setName('migrations:migrate')
->setAliases(['migrate'])
->setDescription(
'Execute a migration to a specified version or the latest available version.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@
#[AsCommand(name: 'migrations:rollup', description: 'Rollup migrations by deleting all tracked versions and insert the one version that exists.')]
final class RollupCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:rollup';

protected function configure(): void
{
parent::configure();

$this
->setName('migrations:rollup')
->setAliases(['rollup'])
->setDescription('Rollup migrations by deleting all tracked versions and insert the one version that exists.')
->setHelp(<<<'EOT'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@
#[AsCommand(name: 'migrations:status', description: 'View the status of a set of migrations.')]
final class StatusCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:status';

protected function configure(): void
{
$this
->setName('migrations:status')
->setAliases(['status'])
->setDescription('View the status of a set of migrations.')
->setHelp(<<<'EOT'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@
#[AsCommand(name: 'migrations:sync-metadata-storage', description: 'Ensures that the metadata storage is at the latest version.')]
final class SyncMetadataCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:sync-metadata-storage';

protected function configure(): void
{
parent::configure();

$this
->setName('migrations:sync-metadata-storage')
->setAliases(['sync-metadata-storage'])
->setDescription('Ensures that the metadata storage is at the latest version.')
->setHelp(<<<'EOT'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@
#[AsCommand(name: 'migrations:up-to-date', description: 'Tells you if your schema is up-to-date.')]
final class UpToDateCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:up-to-date';

protected function configure(): void
{
$this
->setName('migrations:up-to-date')
->setAliases(['up-to-date'])
->setDescription('Tells you if your schema is up-to-date.')
->addOption('fail-on-unregistered', 'u', InputOption::VALUE_NONE, 'Whether to fail when there are unregistered extra migrations found')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,12 @@
#[AsCommand(name: 'migrations:version', description: 'Manually add and delete migration versions from the version table.')]
final class VersionCommand extends DoctrineCommand
{
/** @var string|null */
protected static $defaultName = 'migrations:version';

private bool $markMigrated;

protected function configure(): void
{
$this
->setName('migrations:version')
->setAliases(['version'])
->setDescription('Manually add and delete migration versions from the version table.')
->addArgument(
Expand Down
Loading