File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
app/code/Magento/Store/etc
lib/internal/Magento/Framework/View/Element/Template/File Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 15
15
<argument name =" cache" xsi : type =" object" >Magento\Framework\App\Cache\Type\Config</argument >
16
16
</arguments >
17
17
</type >
18
+ <type name =" Magento\Framework\View\Element\Template\File\Validator" >
19
+ <arguments >
20
+ <argument name =" scope" xsi : type =" string" >store</argument >
21
+ </arguments >
22
+ </type >
18
23
<type name =" Magento\Store\Model\Config\Reader\Website" >
19
24
<arguments >
20
25
<argument name =" scopePool" xsi : type =" object" >Magento\Framework\App\Config\ScopePool\Proxy</argument >
Original file line number Diff line number Diff line change @@ -72,16 +72,15 @@ class Validator
72
72
*
73
73
* @param \Magento\Framework\Filesystem $filesystem
74
74
* @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfigInterface
75
+ * @param string|null $scope
75
76
*/
76
77
public function __construct (
77
78
\Magento \Framework \Filesystem $ filesystem ,
78
- \Magento \Framework \App \Config \ScopeConfigInterface $ scopeConfigInterface
79
+ \Magento \Framework \App \Config \ScopeConfigInterface $ scopeConfigInterface ,
80
+ $ scope = null
79
81
) {
80
82
$ this ->_filesystem = $ filesystem ;
81
- $ this ->_isAllowSymlinks = $ scopeConfigInterface ->getValue (
82
- self ::XML_PATH_TEMPLATE_ALLOW_SYMLINK ,
83
- \Magento \Store \Model \ScopeInterface::SCOPE_STORE
84
- );
83
+ $ this ->_isAllowSymlinks = $ scopeConfigInterface ->getValue (self ::XML_PATH_TEMPLATE_ALLOW_SYMLINK , $ scope );
85
84
$ this ->_themesDir = $ this ->_filesystem ->getDirectoryRead (DirectoryList::THEMES )->getAbsolutePath ();
86
85
$ this ->_appDir = $ this ->_filesystem ->getDirectoryRead (DirectoryList::APP )->getAbsolutePath ();
87
86
$ this ->_compiledDir = $ this ->_filesystem ->getDirectoryRead (DirectoryList::TEMPLATE_MINIFICATION_DIR )
You can’t perform that action at this time.
0 commit comments