Skip to content
Snippets Groups Projects
Commit c957071a authored by Igor Melnikov's avatar Igor Melnikov
Browse files

MAGETWO-60353: Replace json_decode in...

MAGETWO-60353: Replace json_decode in \Magento\Framework\ObjectManager\DefinitionFactory::_unpack with SerializerInterface

Adding removed method back
parent 9149476a
Branches master
No related merge requests found
...@@ -277,4 +277,34 @@ class ObjectManagerFactory ...@@ -277,4 +277,34 @@ class ObjectManagerFactory
} }
return $configData; return $configData;
} }
/**
* Crete plugin list object
*
* @param \Magento\Framework\ObjectManagerInterface $objectManager
* @param \Magento\Framework\ObjectManager\RelationsInterface $relations
* @param \Magento\Framework\ObjectManager\DefinitionFactory $definitionFactory
* @param \Magento\Framework\ObjectManager\Config\Config $diConfig
* @param \Magento\Framework\ObjectManager\DefinitionInterface $definitions
* @return \Magento\Framework\Interception\PluginList\PluginList
* @deprecated
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
protected function _createPluginList(
\Magento\Framework\ObjectManagerInterface $objectManager,
\Magento\Framework\ObjectManager\RelationsInterface $relations,
\Magento\Framework\ObjectManager\DefinitionFactory $definitionFactory,
\Magento\Framework\ObjectManager\Config\Config $diConfig,
\Magento\Framework\ObjectManager\DefinitionInterface $definitions
) {
return $objectManager->create(
\Magento\Framework\Interception\PluginList\PluginList::class,
[
'relations' => $relations,
'definitions' => $definitionFactory->createPluginDefinition(),
'omConfig' => $diConfig,
'classDefinitions' => null
]
);
}
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment