diff --git a/core/lib/Drupal/Core/Command/DbDump.php b/core/lib/Drupal/Core/Command/DbDumpApplication.php similarity index 94% rename from core/lib/Drupal/Core/Command/DbDump.php rename to core/lib/Drupal/Core/Command/DbDumpApplication.php index 48a1b97..d73814fb 100644 --- a/core/lib/Drupal/Core/Command/DbDump.php +++ b/core/lib/Drupal/Core/Command/DbDumpApplication.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\Core\Command\DbDump. + * Contains \Drupal\Core\Command\DbDumpApplication. */ namespace Drupal\Core\Command; @@ -15,7 +15,7 @@ /** * Provides a command to dump a database generation script. */ -class DbDump extends Application { +class DbDumpApplication extends Application { /** * @var \Drupal\Core\Database\Connection diff --git a/core/modules/system/src/Tests/Update/DbDumpTest.php b/core/modules/system/src/Tests/Update/DbDumpTest.php index 8cb7d69..f9fc7e3 100644 --- a/core/modules/system/src/Tests/Update/DbDumpTest.php +++ b/core/modules/system/src/Tests/Update/DbDumpTest.php @@ -7,8 +7,7 @@ namespace Drupal\system\Tests\Update; use Drupal\Component\Utility\SafeMarkup; -use Drupal\Core\Command\DbDump; -use Drupal\Core\Config\Config; +use Drupal\Core\Command\DbDumpApplication; use Drupal\Core\Config\DatabaseStorage; use Drupal\Core\Database\Database; use Drupal\simpletest\KernelTestBase; @@ -52,7 +51,7 @@ public function setUp() { * Test the command directly. */ public function testDbDumpCommand() { - $application = new DbDump(Database::getConnection(), $this->container->get('module_handler')); + $application = new DbDumpApplication(Database::getConnection(), $this->container->get('module_handler')); $command = $application->find('dump-database-d8'); $command_tester = new CommandTester($command); $command_tester->execute([]); @@ -85,7 +84,7 @@ public function testDbDumpCommand() { */ public function testScriptLoad() { // Generate the script. - $application = new DbDump(Database::getConnection(), $this->container->get('module_handler')); + $application = new DbDumpApplication(Database::getConnection(), $this->container->get('module_handler')); $command = $application->find('dump-database-d8'); $command_tester = new CommandTester($command); $command_tester->execute([]); diff --git a/core/scripts/dump-database-d8 b/core/scripts/dump-database-d8.php similarity index 81% rename from core/scripts/dump-database-d8 rename to core/scripts/dump-database-d8.php index 4a83b92..b50f4c0 100755 --- a/core/scripts/dump-database-d8 +++ b/core/scripts/dump-database-d8.php @@ -1,7 +1,7 @@ #!/usr/bin/env php boot(); // Run the database dump command. -$application = new DbDump(Database::getConnection(), \Drupal::moduleHandler()); +$application = new DbDumpApplication(Database::getConnection(), \Drupal::moduleHandler()); $application->run();