File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
PageBuilderPwa/Setup/Converters Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1313use Magento \Framework \App \Area ;
1414use Magento \Framework \App \State ;
1515use Magento \Framework \DB \DataConverter \DataConverterInterface ;
16- use Magento \Framework \Filesystem \Driver \File ;
16+ use Magento \Framework \Filesystem \Driver \Http ;
1717use Magento \PageBuilder \Model \Dom \HtmlDocumentFactory ;
1818
1919/**
@@ -42,26 +42,26 @@ class PageBuilderAddImageDimensions implements DataConverterInterface
4242 private $ value ;
4343
4444 /**
45- * @var File
45+ * @var Http
4646 */
47- private $ file ;
47+ private $ http ;
4848
4949 /**
5050 * @param HtmlDocumentFactory $htmlDocumentFactory
5151 * @param FilterProvider $filterProvider
5252 * @param State $state
53- * @param File $file
53+ * @param Http $http
5454 */
5555 public function __construct (
5656 HtmlDocumentFactory $ htmlDocumentFactory ,
5757 FilterProvider $ filterProvider ,
5858 State $ state ,
59- File $ file
59+ Http $ http
6060 ) {
6161 $ this ->htmlDocumentFactory = $ htmlDocumentFactory ;
6262 $ this ->filterProvider = $ filterProvider ;
6363 $ this ->appState = $ state ;
64- $ this ->file = $ file ;
64+ $ this ->http = $ http ;
6565 }
6666
6767 /**
@@ -82,7 +82,7 @@ function () {
8282 $ srcAttr = $ node ->getAttribute ('src ' );
8383 try {
8484 $ srcUrl = $ this ->filterProvider ->getPageFilter ()->filter ($ srcAttr );
85- $ imageContent = $ this ->file ->fileGetContents ($ srcUrl );
85+ $ imageContent = $ this ->http ->fileGetContents ($ srcUrl );
8686 list ($ width , $ height ) = getimagesizefromstring ($ imageContent );
8787 $ data = [
8888 'height ' => $ height ,
You can’t perform that action at this time.
0 commit comments