File tree 1 file changed +6
-3
lines changed
app/code/Magento/Store/App/FrontController/Plugin 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Store \App \FrontController \Plugin ;
7
7
8
+ /**
9
+ * Plugin to set default store for admin area.
10
+ */
8
11
class DefaultStore
9
12
{
10
13
/**
11
14
* @var \Magento\Store\Model\StoreManagerInterface
12
15
*/
13
- protected $ _storeManager ;
16
+ protected $ storeManager ;
14
17
15
18
/**
16
19
* Initialize dependencies.
@@ -19,7 +22,7 @@ class DefaultStore
19
22
*/
20
23
public function __construct (\Magento \Store \Model \StoreManagerInterface $ storeManager )
21
24
{
22
- $ this ->_storeManager = $ storeManager ;
25
+ $ this ->storeManager = $ storeManager ;
23
26
}
24
27
25
28
/**
@@ -35,6 +38,6 @@ public function beforeDispatch(
35
38
\Magento \Framework \App \FrontController $ subject ,
36
39
\Magento \Framework \App \RequestInterface $ request
37
40
) {
38
- $ this ->_storeManager ->setCurrentStore (\Magento \Store \Model \Store::ADMIN_CODE );
41
+ $ this ->storeManager ->setCurrentStore (\Magento \Store \Model \Store::ADMIN_CODE );
39
42
}
40
43
}
You can’t perform that action at this time.
0 commit comments