File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
app/code/Magento/Customer/Model/ResourceModel/Address/Attribute/Source Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ class Country extends \Magento\Eav\Model\Entity\Attribute\Source\Table
27
27
*/
28
28
protected $ _countriesFactory ;
29
29
30
+ /**
31
+ * @var StoreResolverInterface
32
+ */
33
+ private $ storeResolver ;
34
+
30
35
/**
31
36
* @param \Magento\Eav\Model\ResourceModel\Entity\Attribute\Option\CollectionFactory $attrOptionCollectionFactory
32
37
* @param \Magento\Eav\Model\ResourceModel\Entity\Attribute\OptionFactory $attrOptionFactory
@@ -65,11 +70,16 @@ protected function _createCountriesCollection()
65
70
}
66
71
67
72
/**
73
+ * Retrieve Store Resolver
68
74
* @deprecated
69
75
* @return StoreResolverInterface
70
76
*/
71
77
private function getStoreResolver ()
72
78
{
73
- return ObjectManager::getInstance ()->get (StoreResolverInterface::class);
79
+ if (!$ this ->storeResolver ) {
80
+ $ this ->storeResolver = ObjectManager::getInstance ()->get (StoreResolverInterface::class);
81
+ }
82
+
83
+ return $ this ->storeResolver ;
74
84
}
75
85
}
You can’t perform that action at this time.
0 commit comments