Skip to content

Commit 0bd595b

Browse files
author
Bohdan Korablov
committed
MAGETWO-64602: Sync config file with DB: Validation
1 parent 3cfd10d commit 0bd595b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/code/Magento/Deploy/Console/Command/App/ConfigImportCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414

1515
/**
1616
* Imports data from deployment configuration files to the DB.
17+
*
18+
* We have configuration files that are shared between environments, but sometime we need read
19+
* some configurations only from the DB (e.g., themes, scopes and etc). This command check changes of specific sections
20+
* (which are defined in di.xml) in configuration files, and import them if are needed.
1721
*/
1822
class ConfigImportCommand extends Command
1923
{

lib/internal/Magento/Framework/App/DeploymentConfig/ImporterInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ interface ImporterInterface
1717
*
1818
* @param array $data Data that should be imported
1919
* @return string[] The array of messages that generated during importing
20-
* @throws InvalidTransitionException In case of any exceptions
21-
* during importing. All changed during importing data is rolled back
20+
* @throws InvalidTransitionException In case of errors during importing (e.g., cannot save some data).
21+
* All changed during importing data is rolled back
2222
*/
2323
public function import(array $data);
2424
}

0 commit comments

Comments
 (0)