Skip to content
Permalink
Browse files

changed source storage variable initiation to use service instance fo…

…r if --directory option is not passed in (#3902)
  • Loading branch information...
jenswegar authored and enzolutions committed May 21, 2019
1 parent 7ea06da commit bfce216f78999078a7ea7f31564bfffa1e59f12d
Showing with 2 additions and 6 deletions.
  1. +2 −6 src/Command/Config/ImportCommand.php
@@ -88,15 +88,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
$skipUuid = $input->getOption('skip-uuid');
if ($directory) {
$configSyncDir = $directory;
$source_storage = new FileStorage($directory);
} else {
$configSyncDir = config_get_config_directory(
CONFIG_SYNC_DIRECTORY
);
$source_storage = \Drupal::service('config.storage.sync');
}
$source_storage = new FileStorage($configSyncDir);
$storageComparer = '\Drupal\Core\Config\StorageComparer';
if ($skipUuid) {
$storageComparer = '\Drupal\Console\Override\StorageComparer';

0 comments on commit bfce216

Please sign in to comment.
You can’t perform that action at this time.