Skip to content

Commit c957071

Browse files
author
Igor Melnikov
committed
MAGETWO-60353: Replace json_decode in \Magento\Framework\ObjectManager\DefinitionFactory::_unpack with SerializerInterface
Adding removed method back
1 parent 9149476 commit c957071

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

lib/internal/Magento/Framework/App/ObjectManagerFactory.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,4 +277,34 @@ protected function _loadPrimaryConfig(DirectoryList $directoryList, $driverPool,
277277
}
278278
return $configData;
279279
}
280+
281+
/**
282+
* Crete plugin list object
283+
*
284+
* @param \Magento\Framework\ObjectManagerInterface $objectManager
285+
* @param \Magento\Framework\ObjectManager\RelationsInterface $relations
286+
* @param \Magento\Framework\ObjectManager\DefinitionFactory $definitionFactory
287+
* @param \Magento\Framework\ObjectManager\Config\Config $diConfig
288+
* @param \Magento\Framework\ObjectManager\DefinitionInterface $definitions
289+
* @return \Magento\Framework\Interception\PluginList\PluginList
290+
* @deprecated
291+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
292+
*/
293+
protected function _createPluginList(
294+
\Magento\Framework\ObjectManagerInterface $objectManager,
295+
\Magento\Framework\ObjectManager\RelationsInterface $relations,
296+
\Magento\Framework\ObjectManager\DefinitionFactory $definitionFactory,
297+
\Magento\Framework\ObjectManager\Config\Config $diConfig,
298+
\Magento\Framework\ObjectManager\DefinitionInterface $definitions
299+
) {
300+
return $objectManager->create(
301+
\Magento\Framework\Interception\PluginList\PluginList::class,
302+
[
303+
'relations' => $relations,
304+
'definitions' => $definitionFactory->createPluginDefinition(),
305+
'omConfig' => $diConfig,
306+
'classDefinitions' => null
307+
]
308+
);
309+
}
280310
}

0 commit comments

Comments
 (0)