@@ -52,19 +52,20 @@ public function setUpInterceptionConfig($pluginConfig)
52
52
$ definitions
53
53
);
54
54
$ interceptionDefinitions = new Definition \Runtime ();
55
+ $ sharedInstances = [
56
+ 'Magento\Framework\Config\CacheInterface ' => $ cache ,
57
+ 'Magento\Framework\Config\ScopeInterface ' => $ configScope ,
58
+ 'Magento\Framework\Config\ReaderInterface ' => $ this ->_configReader ,
59
+ 'Magento\Framework\ObjectManager\RelationsInterface ' => $ relations ,
60
+ 'Magento\Framework\ObjectManager\ConfigInterface ' => $ config ,
61
+ 'Magento\Framework\Interception\ObjectManager\ConfigInterface ' => $ config ,
62
+ 'Magento\Framework\ObjectManager\DefinitionInterface ' => $ definitions ,
63
+ 'Magento\Framework\Interception\DefinitionInterface ' => $ interceptionDefinitions
64
+ ];
55
65
$ this ->_objectManager = new \Magento \Framework \ObjectManager \ObjectManager (
56
66
$ factory ,
57
67
$ config ,
58
- [
59
- 'Magento\Framework\Config\CacheInterface ' => $ cache ,
60
- 'Magento\Framework\Config\ScopeInterface ' => $ configScope ,
61
- 'Magento\Framework\Config\ReaderInterface ' => $ this ->_configReader ,
62
- 'Magento\Framework\ObjectManager\RelationsInterface ' => $ relations ,
63
- 'Magento\Framework\ObjectManager\ConfigInterface ' => $ config ,
64
- 'Magento\Framework\Interception\ObjectManager\ConfigInterface ' => $ config ,
65
- 'Magento\Framework\ObjectManager\DefinitionInterface ' => $ definitions ,
66
- 'Magento\Framework\Interception\DefinitionInterface ' => $ interceptionDefinitions
67
- ]
68
+ $ sharedInstances
68
69
);
69
70
$ factory ->setObjectManager ($ this ->_objectManager );
70
71
$ config ->setInterceptionConfig ($ interceptionConfig );
0 commit comments