Skip to content

Commit 8a4dbbc

Browse files
author
Oleksii Korshenko
committed
MAGETWO-48425: [Github] Allowed countries for customer address in admin using storeview configuration #2946
1 parent b6f4000 commit 8a4dbbc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

app/code/Magento/Store/App/FrontController/Plugin/DefaultStore.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@
55
*/
66
namespace Magento\Store\App\FrontController\Plugin;
77

8+
/**
9+
* Plugin to set default store for admin area.
10+
*/
811
class DefaultStore
912
{
1013
/**
1114
* @var \Magento\Store\Model\StoreManagerInterface
1215
*/
13-
protected $_storeManager;
16+
protected $storeManager;
1417

1518
/**
1619
* Initialize dependencies.
@@ -19,7 +22,7 @@ class DefaultStore
1922
*/
2023
public function __construct(\Magento\Store\Model\StoreManagerInterface $storeManager)
2124
{
22-
$this->_storeManager = $storeManager;
25+
$this->storeManager = $storeManager;
2326
}
2427

2528
/**
@@ -35,6 +38,6 @@ public function beforeDispatch(
3538
\Magento\Framework\App\FrontController $subject,
3639
\Magento\Framework\App\RequestInterface $request
3740
) {
38-
$this->_storeManager->setCurrentStore(\Magento\Store\Model\Store::ADMIN_CODE);
41+
$this->storeManager->setCurrentStore(\Magento\Store\Model\Store::ADMIN_CODE);
3942
}
4043
}

0 commit comments

Comments
 (0)