Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/commands/core/config.drush.inc b/commands/core/config.drush.inc
- index 48019a85..681dfa6c 100644
- --- a/commands/core/config.drush.inc
- +++ b/commands/core/config.drush.inc
- @@ -461,7 +461,7 @@ function _drush_config_export($destination, $destination_dir, $branch) {
- $storage_filters = drush_config_get_storage_filters();
- if (count(glob($destination_dir . '/*')) > 0) {
- // Retrieve a list of differences between the active and target configuration (if any).
- - $target_storage = new FileStorage($destination_dir);
- + $target_storage = \Drupal::service('config.storage.sync');
- /** @var \Drupal\Core\Config\StorageInterface $active_storage */
- $active_storage = \Drupal::service('config.storage');
- $comparison_source = $active_storage;
- @@ -510,7 +510,7 @@ function _drush_config_export($destination, $destination_dir, $branch) {
- // Write all .yml files.
- $source_storage = \Drupal::service('config.storage');
- - $destination_storage = new FileStorage($destination_dir);
- + $destination_storage = \Drupal::service('config.storage.sync');
- // If there are any filters, then attach them to the destination storage
- if (!empty($storage_filters)) {
- $destination_storage = new StorageWrapper($destination_storage, $storage_filters);
- @@ -649,7 +649,7 @@ function drush_config_import($source = NULL) {
- }
- }
- else {
- - $source_storage = new FileStorage($source_dir);
- + $source_storage = \Drupal::service('config.storage.sync');
- }
- // If our configuration storage is being filtered, then attach all filters
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement