Skip to content

Commit

Permalink
changed source storage variable initiation to use service instance fo…
Browse files Browse the repository at this point in the history
…r if --directory option is not passed in (#3902)
  • Loading branch information
jenswegar authored and enzolutions committed May 21, 2019
1 parent 7ea06da commit bfce216
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Command/Config/ImportCommand.php
Expand Up @@ -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';
Expand Down

0 comments on commit bfce216

Please sign in to comment.