Skip to content

Commit 2825a14

Browse files
[config:import:single] Prevent writing to DB before accessing (#4237)
ConfigImporter.
1 parent f4c577a commit 2825a14

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Command/Config/ImportSingleCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
102102
$name = Path::getFilenameWithoutExtension($configFile);
103103
$ymlFile = new Parser();
104104
$value = $ymlFile->parse(file_get_contents($configFile));
105-
$source_storage->delete($name);
106-
$source_storage->write($name, $value);
105+
$source_storage->replaceData($name, $value);
107106
$names[] = $name;
108107
continue;
109108
}

0 commit comments

Comments
 (0)