Skip to content

Commit

Permalink
Chase D8 Drupal::service syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Aug 28, 2013
1 parent 75bf8b0 commit 964b3a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/core/config.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function drush_config_set($config_name, $key = NULL, $data = NULL) {
return drush_set_error('DRUSH_CONFIG_ERROR', dt('No config value specified.'));
}

$config = config($config_name);
$config = Drupal::config($config_name);
// Check to see if config key already exists.
if ($config->get($key) === NULL) {
$new_key = TRUE;
Expand Down Expand Up @@ -361,7 +361,7 @@ function drush_config_get_object($config_name) {
*/
function drush_config_get_value($config_name, $key) {
drush_set_default_outputformat('labeled-export');
$config = config($config_name);
$config = Drupal::config($config_name);
if ($config->isNew()) {
return drush_set_error(dt('Config !name does not exist', array('!name' => $config_name)));
}
Expand Down

0 comments on commit 964b3a3

Please sign in to comment.