public function WardenCommands::update in Warden 8.2
Same name and namespace in other branches
- 8 src/Commands/WardenCommands.php \Drupal\warden\Commands\WardenCommands::update()
- 3.x src/Commands/WardenCommands.php \Drupal\warden\Commands\WardenCommands::update()
Update Warden with the lastest site data
@command warden:update @aliases warden-update
File
- src/
Commands/ WardenCommands.php, line 58
Class
- WardenCommands
- A Drush commandfile.
Namespace
Drupal\warden\CommandsCode
public function update() {
$this
->output()
->writeln(dt('Going to update Warden ...'));
try {
$warden_manager = \Drupal::service('warden.manager');
$warden_manager
->updateWarden();
$this
->output()
->writeln(dt('... success'));
} catch (Exception $e) {
throw new \Exception($e
->getMessage());
}
}