diff --git a/src/Command/Doctrine/MigrationsDiffCommand.php b/src/Command/Doctrine/DiffCommand.php similarity index 98% rename from src/Command/Doctrine/MigrationsDiffCommand.php rename to src/Command/Doctrine/DiffCommand.php index 2987926..2bedd52 100644 --- a/src/Command/Doctrine/MigrationsDiffCommand.php +++ b/src/Command/Doctrine/DiffCommand.php @@ -7,7 +7,7 @@ use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; -class MigrationsDiffCommand extends AbstractCommand +class DiffCommand extends AbstractCommand { protected static $defaultName = 'doctrine:migrations:diff'; diff --git a/src/Command/Doctrine/MigrationsMigrateCommand.php b/src/Command/Doctrine/MigrateCommand.php similarity index 98% rename from src/Command/Doctrine/MigrationsMigrateCommand.php rename to src/Command/Doctrine/MigrateCommand.php index 436d618..c96af3a 100644 --- a/src/Command/Doctrine/MigrationsMigrateCommand.php +++ b/src/Command/Doctrine/MigrateCommand.php @@ -8,7 +8,7 @@ use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; -class MigrationsMigrateCommand extends AbstractCommand +class MigrateCommand extends AbstractCommand { protected static $defaultName = 'doctrine:migrations:migrate'; diff --git a/src/Command/Doctrine/MigrationsVersionCommand.php b/src/Command/Doctrine/VersionCommand.php similarity index 98% rename from src/Command/Doctrine/MigrationsVersionCommand.php rename to src/Command/Doctrine/VersionCommand.php index e1aedd3..3b7da3f 100644 --- a/src/Command/Doctrine/MigrationsVersionCommand.php +++ b/src/Command/Doctrine/VersionCommand.php @@ -8,7 +8,7 @@ use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; -class MigrationsVersionCommand extends AbstractCommand +class VersionCommand extends AbstractCommand { protected static $defaultName = 'doctrine:migrations:version'; diff --git a/src/Resources/config/services.yaml b/src/Resources/config/services.yaml index 6ea429c..9da091d 100644 --- a/src/Resources/config/services.yaml +++ b/src/Resources/config/services.yaml @@ -14,7 +14,7 @@ services: abstract: true doctrine_migrations.diff_command: - class: AvaiBookSports\Bundle\MigrationsMutlipleDatabase\Command\Doctrine\MigrationsDiffCommand + class: AvaiBookSports\Bundle\MigrationsMutlipleDatabase\Command\Doctrine\DiffCommand arguments: - '@doctrine.migrations_multiple_database.configuration' tags: ['console.command'] @@ -26,7 +26,7 @@ services: # doctrine_migrations.latest_command: doctrine_migrations.migrate_command: - class: AvaiBookSports\Bundle\MigrationsMutlipleDatabase\Command\Doctrine\MigrationsMigrateCommand + class: AvaiBookSports\Bundle\MigrationsMutlipleDatabase\Command\Doctrine\MigrateCommand arguments: - '@doctrine.migrations_multiple_database.configuration' tags: ['console.command'] @@ -37,7 +37,7 @@ services: # doctrine_migrations.up_to_date_command: doctrine_migrations.version_command: - class: AvaiBookSports\Bundle\MigrationsMutlipleDatabase\Command\Doctrine\MigrationsVersionCommand + class: AvaiBookSports\Bundle\MigrationsMutlipleDatabase\Command\Doctrine\VersionCommand arguments: - '@doctrine.migrations_multiple_database.configuration' tags: ['console.command'] \ No newline at end of file