Mercurial > hg > isophonics-drupal-site
view core/lib/Drupal/Core/Command/DbDumpApplication.php @ 13:5fb285c0d0e3
Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've
been lucky to get away with this so far, as we don't support self-registration
which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5
was vulnerable to.
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:33:26 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?php namespace Drupal\Core\Command; use Symfony\Component\Console\Application; use Symfony\Component\Console\Input\InputInterface; /** * Provides a command to dump a database generation script. */ class DbDumpApplication extends Application { /** * {@inheritdoc} */ protected function getCommandName(InputInterface $input) { return 'dump-database-d8-mysql'; } /** * {@inheritdoc} */ protected function getDefaultCommands() { // Even though this is a single command, keep the HelpCommand (--help). $default_commands = parent::getDefaultCommands(); $default_commands[] = new DbDumpCommand(); return $default_commands; } /** * {@inheritdoc} * * Overridden so the application doesn't expect the command name as the first * argument. */ public function getDefinition() { $definition = parent::getDefinition(); // Clears the normal first argument (the command name). $definition->setArguments(); return $definition; } }