File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
dev/tests/static/testsuite/Magento/Test/Integrity/App/Language
setup/src/Magento/Setup/Module/I18n/Parser/Adapter Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 10
10
use Magento \Setup \Module \I18n \Dictionary \Options \ResolverFactory ;
11
11
use Magento \Setup \Module \I18n \Locale ;
12
12
use Magento \Setup \Module \I18n \Pack \Writer \File \Csv ;
13
+ use Magento \Framework \Filesystem \Driver \File ;
13
14
14
15
/**
15
16
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
@@ -104,9 +105,10 @@ protected function prepareParser()
104
105
$ phraseCollector = new \Magento \Setup \Module \I18n \Parser \Adapter \Php \Tokenizer \PhraseCollector (
105
106
new \Magento \Setup \Module \I18n \Parser \Adapter \Php \Tokenizer ()
106
107
);
108
+ $ fileSystem = new File ;
107
109
$ adapters = [
108
110
'php ' => new \Magento \Setup \Module \I18n \Parser \Adapter \Php ($ phraseCollector ),
109
- 'js ' => new \Magento \Setup \Module \I18n \Parser \Adapter \Js (),
111
+ 'js ' => new \Magento \Setup \Module \I18n \Parser \Adapter \Js ($ fileSystem ),
110
112
'xml ' => new \Magento \Setup \Module \I18n \Parser \Adapter \Xml (),
111
113
'html ' => new \Magento \Setup \Module \I18n \Parser \Adapter \Html (),
112
114
];
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ public function __construct(File $filesystem)
47
47
48
48
/**
49
49
* @inheritdoc
50
+ *
50
51
* @throws FileSystemException
51
52
*/
52
53
protected function _parse ()
You can’t perform that action at this time.
0 commit comments