X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Fsrc%2FDrupal%2FCommands%2Fsql%2FSanitizeCommands.php;fp=vendor%2Fdrush%2Fdrush%2Fsrc%2FDrupal%2FCommands%2Fsql%2FSanitizeCommands.php;h=43729b5d3fa03c29499e03cd842458f447906dc7;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/drush/drush/src/Drupal/Commands/sql/SanitizeCommands.php b/vendor/drush/drush/src/Drupal/Commands/sql/SanitizeCommands.php new file mode 100644 index 000000000..43729b5d3 --- /dev/null +++ b/vendor/drush/drush/src/Drupal/Commands/sql/SanitizeCommands.php @@ -0,0 +1,55 @@ +input(); + $handlers = $this->getCustomEventHandlers('sql-sanitize-confirms'); + foreach ($handlers as $handler) { + $handler($messages, $input); + } + if (!empty($messages)) { + $this->output()->writeln(dt('The following operations will be performed:')); + $this->io()->listing($messages); + } + if (!$this->io()->confirm(dt('Do you want to sanitize the current database?'))) { + throw new UserAbortException(); + } + + // All sanitize operations defined in post-command hooks, including Drush + // core sanitize routines. See \Drush\Commands\sql\SanitizePluginInterface. + } +}