DbToolsApplication.php 594 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace Drupal\Core\Command;
  3. use Symfony\Component\Console\Application;
  4. /**
  5. * Provides a command to import a database generation script.
  6. */
  7. class DbToolsApplication extends Application {
  8. /**
  9. * {@inheritdoc}
  10. */
  11. public function __construct() {
  12. parent::__construct('Database Tools', \Drupal::VERSION);
  13. }
  14. /**
  15. * {@inheritdoc}
  16. */
  17. protected function getDefaultCommands() {
  18. $default_commands = parent::getDefaultCommands();
  19. $default_commands[] = new DbDumpCommand();
  20. $default_commands[] = new DbImportCommand();
  21. return $default_commands;
  22. }
  23. }