Skip to content

Commit e91fba4

Browse files
author
Viktor Tymchynskyi
committed
MAGETWO-38627: Configs for payments and shippings are not encrypted
- Add ability to set custom backend model for config value
1 parent ae1c58b commit e91fba4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

setup/src/Magento/Setup/Fixtures/ConfigsApplyFixture.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,13 @@ public function execute()
2828
$this->fixtureModel->resetObjectManager();
2929

3030
foreach ($configs['config'] as $config) {
31+
$backendModel = isset($config['backend_model'])
32+
?
33+
$config['backend_model'] : 'Magento\Framework\App\Config\Value';
3134
/**
32-
* @var \Magento\Framework\App\Config\Value $configData
35+
* @var \Magento\Framework\App\Config\ValueInterface $configData
3336
*/
34-
$configData = $this->fixtureModel->getObjectManager()->create('Magento\Framework\App\Config\Value');
37+
$configData = $this->fixtureModel->getObjectManager()->create($backendModel);
3538
$configData->setPath($config['path'])
3639
->setScope($config['scope'])
3740
->setScopeId($config['scopeId'])

0 commit comments

Comments
 (0)