File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
app/code/Magento/Indexer/Model/Config
lib/internal/Magento/Framework/Config Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 6
6
namespace Magento \Indexer \Model \Config ;
7
7
8
8
use Magento \Framework \Serialize \SerializerInterface ;
9
+ use Magento \Framework \Serialize \Serializer \Serialize ;
10
+ use Magento \Framework \App \ObjectManager ;
9
11
10
12
class Data extends \Magento \Framework \Config \Data
11
13
{
@@ -29,6 +31,7 @@ public function __construct(
29
31
SerializerInterface $ serializer = null
30
32
) {
31
33
$ this ->stateCollection = $ stateCollection ;
34
+ $ serializer = $ serializer ?: ObjectManager::getInstance ()->get (Serialize::class);
32
35
33
36
$ isCacheExists = $ cache ->test ($ cacheId );
34
37
Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- * Config data. Represents loaded and cached configuration data. Should be used to gain access to different types
4
- *
5
3
* Copyright © 2016 Magento. All rights reserved.
6
4
* See COPYING.txt for license details.
7
5
*/
11
9
use Magento \Framework \App \ObjectManager ;
12
10
13
11
/**
12
+ * Represents loaded and cached configuration data, should be used to gain access to different types
13
+ *
14
14
* @SuppressWarnings(PHPMD.NumberOfChildren)
15
15
*/
16
16
class Data implements \Magento \Framework \Config \DataInterface
You can’t perform that action at this time.
0 commit comments