@@ -120,7 +110,7 @@ class KeyCommands extends DrushCommands {
if($existing_key){
// Add a warning about overwriting a key.
$this->logger->warning('Be extremely careful when overwriting a key! It may result in losing access to a service or making encrypted data unreadable.');
$this->logger()->warning('Be extremely careful when overwriting a key! It may result in losing access to a service or making encrypted data unreadable.');
// Confirm that the key should be saved.
$this->output->writeln(dt('The following key will be overwritten: !id',['!id'=>$values['id']]));
@@ -182,7 +172,7 @@ class KeyCommands extends DrushCommands {
thrownew\Exception(dt('Key !id was not saved.',['!id'=>$values['id']]));
}
$this->logger->info('Key !id was saved successfully.',['!id'=>$values['id']]);
$this->logger()->info('Key !id was saved successfully.',['!id'=>$values['id']]);
}
/**
@@ -208,7 +198,7 @@ class KeyCommands extends DrushCommands {
}
// Confirm that the key should be deleted.
$this->logger->warning('Be extremely careful when deleting a key! It may result in losing access to a service or making encrypted data unreadable.');
$this->logger()->warning('Be extremely careful when deleting a key! It may result in losing access to a service or making encrypted data unreadable.');
$this->output->writeln(dt('The following key will be deleted: !id',['!id'=>$id]));
if(!$this->io()->confirm(dt('Do you want to continue?'))){
// Removing drush_user_abort(), no current implementation of that.
@@ -226,7 +216,7 @@ class KeyCommands extends DrushCommands {
thrownew\Exception(dt('Key !id was not deleted.',['!id'=>$id]));
}
$this->logger->info('Key !id was deleted successfully.',['!id'=>$id]);
$this->logger()->info('Key !id was deleted successfully.',['!id'=>$id]);