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 1010use Magento \Setup \Module \I18n \Dictionary \Options \ResolverFactory ;
1111use Magento \Setup \Module \I18n \Locale ;
1212use Magento \Setup \Module \I18n \Pack \Writer \File \Csv ;
13+ use Magento \Framework \Filesystem \Driver \File ;
1314
1415/**
1516 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
@@ -104,9 +105,10 @@ protected function prepareParser()
104105 $ phraseCollector = new \Magento \Setup \Module \I18n \Parser \Adapter \Php \Tokenizer \PhraseCollector (
105106 new \Magento \Setup \Module \I18n \Parser \Adapter \Php \Tokenizer ()
106107 );
108+ $ fileSystem = new File ;
107109 $ adapters = [
108110 '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 ),
110112 'xml ' => new \Magento \Setup \Module \I18n \Parser \Adapter \Xml (),
111113 'html ' => new \Magento \Setup \Module \I18n \Parser \Adapter \Html (),
112114 ];
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ public function __construct(File $filesystem)
4747
4848 /**
4949 * @inheritdoc
50+ *
5051 * @throws FileSystemException
5152 */
5253 protected function _parse ()
You can’t perform that action at this time.
0 commit comments