Skip to content

Commit ae93b34

Browse files
committed
MAGETWO-96459: Fix performance on MAGETWO-83832
- address code review feedback
1 parent 3005e0e commit ae93b34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/Config/App/Config/Type/System.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class System implements ConfigTypeInterface
8686
* @param int $cachingNestedLevel
8787
* @param string $configType
8888
* @param Reader|null $reader
89-
* @param Encryptor|null $encryptorFilter
89+
* @param Encryptor|null $encryptor
9090
*
9191
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
9292
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
@@ -101,14 +101,14 @@ public function __construct(
101101
$cachingNestedLevel = 1,
102102
$configType = self::CONFIG_TYPE,
103103
Reader $reader = null,
104-
Encryptor $encryptorFilter = null
104+
Encryptor $encryptor = null
105105
) {
106106
$this->postProcessor = $postProcessor;
107107
$this->cache = $cache;
108108
$this->serializer = $serializer;
109109
$this->configType = $configType;
110110
$this->reader = $reader ?: ObjectManager::getInstance()->get(Reader::class);
111-
$this->encryptor = ObjectManager::getInstance()->get(\Magento\Framework\Encryption\Encryptor::class);
111+
$this->encryptor = $encryptor ?: ObjectManager::getInstance()->get(\Magento\Framework\Encryption\Encryptor::class);
112112
}
113113

114114
/**

0 commit comments

Comments
 (0)