51 $this->_readerFactory = $readerFactory;
61 if (empty($this->_reader)) {
62 $this->_reader = $this->_readerFactory->create();
70 public function load($area)
72 $cacheId = $area .
'::DiConfig';
73 $data = $this->_cache->load($cacheId);
77 $this->_cache->save($this->getSerializer()->serialize(
$data), $cacheId);
79 $data = $this->getSerializer()->unserialize(
$data);
91 private function getSerializer()
93 if (
null === $this->serializer) {
96 return $this->serializer;
__construct(\Magento\Framework\Config\CacheInterface $cache, \Magento\Framework\ObjectManager\Config\Reader\DomFactory $readerFactory)