Skip to content

Commit

Permalink
Keep up with D8. Configuration objects by default are immutable. http…
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Jan 17, 2015
1 parent c656bf3 commit 2a0f336
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commands/core/config.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ function drush_config_set($config_name, $key = NULL, $data = NULL) {
return drush_set_error('DRUSH_CONFIG_ERROR', dt('No config value specified.'));
}

$config = Drupal::config($config_name);
$config = Drupal::configFactory()->getEditable($config_name);
// Check to see if config key already exists.
if ($config->get($key) === NULL) {
$new_key = TRUE;
Expand Down Expand Up @@ -422,7 +422,7 @@ function _drush_config_import(StorageComparer $storage_comparer) {
function drush_config_edit($config_name = '') {
// Identify and validate input.
if ($config_name) {
$config = Drupal::config($config_name);
$config = Drupal::configFactory()->getEditable($config_name);
if ($config->isNew()) {
return drush_set_error(dt('Config !name does not exist', array('!name' => $config_name)));
}
Expand All @@ -435,7 +435,7 @@ function drush_config_edit($config_name = '') {
}
else {
$config_name = $config_names[$choice];
$config = Drupal::config($config_name);
$config = Drupal::configFactory()->getEditable($config_name);
}
}

Expand Down

0 comments on commit 2a0f336

Please sign in to comment.