Skip to content
Snippets Groups Projects
Commit cc348324 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

Refactoring to use Serialize implementation
parent 47e7bb8a
No related merge requests found
<?php
/**
*
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
......@@ -164,14 +163,14 @@ class Compiled implements \Magento\Framework\ObjectManager\ConfigInterface
/**
* Get serializer
*
* @return \Magento\Framework\Serialize\SerializerInterface
* @return SerializerInterface
* @deprecated
*/
private function getSerializer()
{
if ($this->serializer === null) {
if (null === $this->serializer) {
$this->serializer = \Magento\Framework\App\ObjectManager::getInstance()
->get(SerializerInterface::class);
->get(Serialize::class);
}
return $this->serializer;
}
......
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