File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
lib/internal/Magento/Framework/Serialize/Serializer Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
class Json implements SerializerInterface
17
17
{
18
- private $ appState = NULL ;
19
-
20
- public function __construct (){
21
- $ objectManager = \Magento \Framework \App \ObjectManager::getInstance ();
22
- $ this ->appState = $ objectManager ->get ('Magento\Framework\App\State ' );
23
- }
24
18
/**
25
19
* {@inheritDoc}
26
20
* @since 100.2.0
@@ -56,6 +50,8 @@ public function unserialize($string)
56
50
}
57
51
58
52
private function isOnProduction (){
59
- return $ this ->appState === \Magento \Framework \App \State::MODE_PRODUCTION ;
53
+ $ appState = \Magento \Framework \App \ObjectManager::getInstance ()
54
+ ->get ('Magento\Framework\App\State ' );
55
+ return $ appState === \Magento \Framework \App \State::MODE_PRODUCTION ;
60
56
}
61
57
}
You can’t perform that action at this time.
0 commit comments