Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. diff --git a/commands/core/config.drush.inc b/commands/core/config.drush.inc
  2. index 48019a85..681dfa6c 100644
  3. --- a/commands/core/config.drush.inc
  4. +++ b/commands/core/config.drush.inc
  5. @@ -461,7 +461,7 @@ function _drush_config_export($destination, $destination_dir, $branch) {
  6. $storage_filters = drush_config_get_storage_filters();
  7. if (count(glob($destination_dir . '/*')) > 0) {
  8. // Retrieve a list of differences between the active and target configuration (if any).
  9. - $target_storage = new FileStorage($destination_dir);
  10. + $target_storage = \Drupal::service('config.storage.sync');
  11. /** @var \Drupal\Core\Config\StorageInterface $active_storage */
  12. $active_storage = \Drupal::service('config.storage');
  13. $comparison_source = $active_storage;
  14. @@ -510,7 +510,7 @@ function _drush_config_export($destination, $destination_dir, $branch) {
  15.  
  16. // Write all .yml files.
  17. $source_storage = \Drupal::service('config.storage');
  18. - $destination_storage = new FileStorage($destination_dir);
  19. + $destination_storage = \Drupal::service('config.storage.sync');
  20. // If there are any filters, then attach them to the destination storage
  21. if (!empty($storage_filters)) {
  22. $destination_storage = new StorageWrapper($destination_storage, $storage_filters);
  23. @@ -649,7 +649,7 @@ function drush_config_import($source = NULL) {
  24. }
  25. }
  26. else {
  27. - $source_storage = new FileStorage($source_dir);
  28. + $source_storage = \Drupal::service('config.storage.sync');
  29. }
  30.  
  31. // If our configuration storage is being filtered, then attach all filters
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement