File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed
lib/internal/Magento/Framework/Config Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Framework \Config ;
7
7
8
- class Scope implements \Magento \Framework \Config \ScopeInterface, \Magento \Framework \Config \ScopeListInterface
9
- {
10
- /**
11
- * Default application scope
12
- *
13
- * @var string
14
- */
15
- protected $ _defaultScope ;
8
+ use Magento \Framework \App \AreaList ;
16
9
10
+ /**
11
+ * Scope config
12
+ */
13
+ class Scope implements ScopeInterface, ScopeListInterface
14
+ {
17
15
/**
18
16
* Current config scope
19
17
*
@@ -24,19 +22,19 @@ class Scope implements \Magento\Framework\Config\ScopeInterface, \Magento\Framew
24
22
/**
25
23
* List of all available areas
26
24
*
27
- * @var \Magento\Framework\App\ AreaList
25
+ * @var AreaList
28
26
*/
29
27
protected $ _areaList ;
30
28
31
29
/**
32
30
* Constructor
33
31
*
34
- * @param \Magento\Framework\App\ AreaList $areaList
32
+ * @param AreaList $areaList
35
33
* @param string $defaultScope
36
34
*/
37
- public function __construct (\ Magento \ Framework \ App \ AreaList $ areaList , $ defaultScope = 'primary ' )
35
+ public function __construct (AreaList $ areaList , $ defaultScope = 'primary ' )
38
36
{
39
- $ this ->_defaultScope = $ this -> _currentScope = $ defaultScope ;
37
+ $ this ->_currentScope = $ defaultScope ;
40
38
$ this ->_areaList = $ areaList ;
41
39
}
42
40
You can’t perform that action at this time.
0 commit comments