File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
app/code/Magento/Customer/Model/ResourceModel/Address/Attribute/Source Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 13
13
14
14
use Magento \Checkout \Model \Session ;
15
15
use Magento \Framework \App \ObjectManager ;
16
+ use Magento \Store \Api \StoreResolverInterface ;
16
17
use Magento \Store \Model \StoreManagerInterface ;
17
18
18
19
/**
@@ -49,7 +50,7 @@ public function getAllOptions()
49
50
{
50
51
if (!$ this ->_options ) {
51
52
$ this ->_options = $ this ->_createCountriesCollection ()->loadByStore (
52
- $ this ->getStoreManager ()->getStore ()-> getId ()
53
+ $ this ->getStoreResolver ()->getCurrentStoreId ()
53
54
)->toOptionArray ();
54
55
}
55
56
return $ this ->_options ;
@@ -65,10 +66,10 @@ protected function _createCountriesCollection()
65
66
66
67
/**
67
68
* @deprecated
68
- * @return StoreManagerInterface
69
+ * @return StoreResolverInterface
69
70
*/
70
- private function getStoreManager ()
71
+ private function getStoreResolver ()
71
72
{
72
- return ObjectManager::getInstance ()->get (StoreManagerInterface ::class);
73
+ return ObjectManager::getInstance ()->get (StoreResolverInterface ::class);
73
74
}
74
75
}
You can’t perform that action at this time.
0 commit comments