File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
app/code/Magento/EncryptionKey/Setup/Patch/Data Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 8
8
namespace Magento \EncryptionKey \Setup \Patch \Data ;
9
9
10
10
use Magento \Framework \Setup \Patch \DataPatchInterface ;
11
+ use Magento \Framework \App \ObjectManager ;
11
12
12
13
/**
13
14
* Migrate encrypted configuration values to the latest cipher
@@ -45,20 +46,20 @@ class SodiumChachaPatch implements DataPatchInterface
45
46
* @param \Magento\Config\Model\Config\Structure\Proxy $structure
46
47
* @param \Magento\Framework\Encryption\EncryptorInterface $encryptor
47
48
* @param \Magento\Framework\App\State $state
48
- * @param \Magento\Framework\Config\ScopeInterface $scope
49
+ * @param \Magento\Framework\Config\ScopeInterface|null $scope
49
50
*/
50
51
public function __construct (
51
52
\Magento \Framework \Setup \ModuleDataSetupInterface $ moduleDataSetup ,
52
53
\Magento \Config \Model \Config \Structure \Proxy $ structure ,
53
54
\Magento \Framework \Encryption \EncryptorInterface $ encryptor ,
54
55
\Magento \Framework \App \State $ state ,
55
- \Magento \Framework \Config \ScopeInterface $ scope
56
+ \Magento \Framework \Config \ScopeInterface $ scope = null
56
57
) {
57
58
$ this ->moduleDataSetup = $ moduleDataSetup ;
58
59
$ this ->structure = $ structure ;
59
60
$ this ->encryptor = $ encryptor ;
60
61
$ this ->state = $ state ;
61
- $ this ->scope = $ scope ;
62
+ $ this ->scope = $ scope ?? ObjectManager:: getInstance ()-> get (\ Magento \ Framework \ Config \ScopeInterface::class) ;
62
63
}
63
64
64
65
/**
You can’t perform that action at this time.
0 commit comments