Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
[DI] Fixed deprecations command (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
root-aza authored Feb 13, 2023
1 parent c888c70 commit 51be7ed
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 46 deletions.
3 changes: 0 additions & 3 deletions src/Command/Doctrine/CurrentCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@

class CurrentCommand extends AbstractCommand
{
/** @var string */
protected static $defaultName = 'doctrine:migrations:current';

protected function configure(): void
{
$this
Expand Down
2 changes: 0 additions & 2 deletions src/Command/Doctrine/DiffCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

class DiffCommand extends AbstractCommand
{
protected static $defaultName = 'doctrine:migrations:diff';

protected function configure(): void
{
$this
Expand Down
3 changes: 0 additions & 3 deletions src/Command/Doctrine/DumpSchemaCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@

class DumpSchemaCommand extends AbstractCommand
{
/** @var string */
protected static $defaultName = 'doctrine:migrations:dump-schema';

protected function configure(): void
{
$this
Expand Down
3 changes: 0 additions & 3 deletions src/Command/Doctrine/ExecuteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@

class ExecuteCommand extends AbstractCommand
{
/** @var string */
protected static $defaultName = 'doctrine:migrations:execute';

protected function configure(): void
{
$this
Expand Down
2 changes: 0 additions & 2 deletions src/Command/Doctrine/GenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

class GenerateCommand extends AbstractCommand
{
protected static $defaultName = 'doctrine:migrations:generate';

protected function configure(): void
{
$this
Expand Down
3 changes: 0 additions & 3 deletions src/Command/Doctrine/LatestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@

class LatestCommand extends AbstractCommand
{
/** @var string */
protected static $defaultName = 'doctrine:migrations:latest';

protected function configure(): void
{
$this
Expand Down
2 changes: 0 additions & 2 deletions src/Command/Doctrine/ListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

class ListCommand extends AbstractCommand
{
protected static $defaultName = 'doctrine:migrations:list';

protected function configure(): void
{
$this
Expand Down
2 changes: 0 additions & 2 deletions src/Command/Doctrine/MigrateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

class MigrateCommand extends AbstractCommand
{
protected static $defaultName = 'doctrine:migrations:migrate';

protected function configure(): void
{
$this
Expand Down
2 changes: 0 additions & 2 deletions src/Command/Doctrine/RollupCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

class RollupCommand extends AbstractCommand
{
protected static $defaultName = 'doctrine:migrations:rollup';

protected function configure(): void
{
$this
Expand Down
3 changes: 0 additions & 3 deletions src/Command/Doctrine/StatusCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@

class StatusCommand extends AbstractCommand
{
/** @var string */
protected static $defaultName = 'doctrine:migrations:status';

protected function configure(): void
{
$this
Expand Down
3 changes: 0 additions & 3 deletions src/Command/Doctrine/SyncMetadataCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@

class SyncMetadataCommand extends AbstractCommand
{
/** @var string */
protected static $defaultName = 'doctrine:migrations:sync-metadata-storage';

protected function configure(): void
{
parent::configure();
Expand Down
3 changes: 0 additions & 3 deletions src/Command/Doctrine/UpToDateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@

class UpToDateCommand extends AbstractCommand
{
/** @var string */
protected static $defaultName = 'doctrine:migrations:up-to-date';

protected function configure(): void
{
$this
Expand Down
2 changes: 0 additions & 2 deletions src/Command/Doctrine/VersionCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

class VersionCommand extends AbstractCommand
{
protected static $defaultName = 'doctrine:migrations:version';

protected function configure(): void
{
$this
Expand Down
39 changes: 26 additions & 13 deletions src/Resources/config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,76 +17,89 @@ services:
class: AvaiBookSports\Bundle\MigrationsMutlipleDatabase\Command\Doctrine\DiffCommand
arguments:
- '@doctrine.migrations_multiple_database.configuration'
tags: ['console.command']
tags:
- { name: 'console.command', command: 'doctrine:migrations:diff' }

doctrine_migrations.sync_metadata_command:
class: AvaiBookSports\Bundle\MigrationsMutlipleDatabase\Command\Doctrine\SyncMetadataCommand
arguments:
- '@doctrine.migrations_multiple_database.configuration'
tags: ['console.command']
tags:
- { name: 'console.command', command: 'doctrine:migrations:sync-metadata-storage' }

doctrine_migrations.versions_command:
class: AvaiBookSports\Bundle\MigrationsMutlipleDatabase\Command\Doctrine\ListCommand
arguments:
- '@doctrine.migrations_multiple_database.configuration'
tags: ['console.command']
tags:
- { name: 'console.command', command: 'doctrine:migrations:list' }

doctrine_migrations.current_command:
class: AvaiBookSports\Bundle\MigrationsMutlipleDatabase\Command\Doctrine\CurrentCommand
arguments:
- '@doctrine.migrations_multiple_database.configuration'
tags: ['console.command']
tags:
- { name: 'console.command', command: 'doctrine:migrations:current' }

doctrine_migrations.dump_schema_command:
class: AvaiBookSports\Bundle\MigrationsMutlipleDatabase\Command\Doctrine\DumpSchemaCommand
arguments:
- '@doctrine.migrations_multiple_database.configuration'
tags: ['console.command']
tags:
- { name: 'console.command', command: 'doctrine:migrations:dump-schema' }

doctrine_migrations.execute_command:
class: AvaiBookSports\Bundle\MigrationsMutlipleDatabase\Command\Doctrine\ExecuteCommand
arguments:
- '@doctrine.migrations_multiple_database.configuration'
tags: ['console.command']
tags:
- { name: 'console.command', command: 'doctrine:migrations:execute' }

doctrine_migrations.generate_command:
class: AvaiBookSports\Bundle\MigrationsMutlipleDatabase\Command\Doctrine\GenerateCommand
arguments:
- '@doctrine.migrations_multiple_database.configuration'
tags: ['console.command']
tags:
- { name: 'console.command', command: 'doctrine:migrations:generate' }

doctrine_migrations.latest_command:
class: AvaiBookSports\Bundle\MigrationsMutlipleDatabase\Command\Doctrine\LatestCommand
arguments:
- '@doctrine.migrations_multiple_database.configuration'
tags: ['console.command']
tags:
- { name: 'console.command', command: 'doctrine:migrations:latest' }

doctrine_migrations.migrate_command:
class: AvaiBookSports\Bundle\MigrationsMutlipleDatabase\Command\Doctrine\MigrateCommand
arguments:
- '@doctrine.migrations_multiple_database.configuration'
tags: ['console.command']
tags:
- { name: 'console.command', command: 'doctrine:migrations:migrate' }

doctrine_migrations.rollup_command:
class: AvaiBookSports\Bundle\MigrationsMutlipleDatabase\Command\Doctrine\RollupCommand
arguments:
- '@doctrine.migrations_multiple_database.configuration'
tags: ['console.command']
tags:
- { name: 'console.command', command: 'doctrine:migrations:rollup' }

doctrine_migrations.status_command:
class: AvaiBookSports\Bundle\MigrationsMutlipleDatabase\Command\Doctrine\StatusCommand
arguments:
- '@doctrine.migrations_multiple_database.configuration'
tags: ['console.command']
tags:
- { name: 'console.command', command: 'doctrine:migrations:status' }

doctrine_migrations.up_to_date_command:
class: AvaiBookSports\Bundle\MigrationsMutlipleDatabase\Command\Doctrine\UpToDateCommand
arguments:
- '@doctrine.migrations_multiple_database.configuration'
tags: ['console.command']
tags:
- { name: 'console.command', command: 'doctrine:migrations:up-to-date' }

doctrine_migrations.version_command:
class: AvaiBookSports\Bundle\MigrationsMutlipleDatabase\Command\Doctrine\VersionCommand
arguments:
- '@doctrine.migrations_multiple_database.configuration'
tags: ['console.command']
tags:
- { name: 'console.command', command: 'doctrine:migrations:version' }

0 comments on commit 51be7ed

Please sign in to comment.