Skip to content

Commit c97e337

Browse files
committed
AC-8095::Investigate the phpgt/dom Composer dependencies upgrading to latest version
1 parent 4ae2f16 commit c97e337

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

app/code/Magento/PageBuilder/Model/Dom/HtmlDocument.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(
3434
$this->document = $this->objectManager->create(
3535
GtDomHTMLDocument::class,
3636
[
37-
"document" => $document,
37+
"html" => $document,
3838
"characterSet" => $characterSet
3939
]
4040
);

app/code/Magento/PageBuilder/Model/Dom/StringMap.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace Magento\PageBuilder\Model\Dom;
99

10-
use Gt\Dom\DOMStringMapFactory as GtDomStringMapFactory;
10+
use Gt\Dom\DOMStringMap as GtDomStringMap;
1111
use Magento\Framework\ObjectManagerInterface;
1212
use Magento\PageBuilder\Model\Dom\Adapter\StringMapInterface;
1313

@@ -22,19 +22,19 @@ class StringMap implements StringMapInterface
2222
private $objectManager;
2323

2424
/**
25-
* @var GtDomStringMapFactory
25+
* @var GtDomStringMap
2626
*/
2727
private $stringMap;
2828

2929
/**
3030
* HtmlDocument constructor.
3131
*
3232
* @param ObjectManagerInterface $objectManager
33-
* @param GtDomStringMapFactory $stringMap
33+
* @param GtDomStringMap $stringMap
3434
*/
3535
public function __construct(
3636
ObjectManagerInterface $objectManager,
37-
GtDomStringMapFactory $stringMap
37+
GtDomStringMap $stringMap
3838
) {
3939
$this->objectManager = $objectManager;
4040
$this->stringMap = $stringMap;

app/code/Magento/PageBuilder/Model/Dom/TokenList.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace Magento\PageBuilder\Model\Dom;
99

10-
use Gt\Dom\DOMTokenListFactory as GtDomTokenListFactory;
10+
use Gt\Dom\DOMTokenList as GtDomTokenList;
1111
use Magento\Framework\ObjectManagerInterface;
1212
use Magento\PageBuilder\Model\Dom\Adapter\TokenListInterface;
1313

@@ -22,19 +22,19 @@ class TokenList implements TokenListInterface
2222
private $objectManager;
2323

2424
/**
25-
* @var GtDomTokenListFactory
25+
* @var GtDomTokenList
2626
*/
2727
private $tokenList;
2828

2929
/**
3030
* TokenList constructor.
3131
*
3232
* @param ObjectManagerInterface $objectManager
33-
* @param GtDomTokenListFactory $tokenList
33+
* @param GtDomTokenList $tokenList
3434
*/
3535
public function __construct(
3636
ObjectManagerInterface $objectManager,
37-
GtDomTokenListFactory $tokenList
37+
GtDomTokenList $tokenList
3838
) {
3939
$this->objectManager = $objectManager;
4040
$this->tokenList = $tokenList;

0 commit comments

Comments
 (0)