Skip to content

Commit 672df31

Browse files
committed
Kept original class for backward compatibility
1 parent 0ced116 commit 672df31

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/code/Magento/Catalog/ViewModel/Product/Breadcrumbs.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Magento\Framework\App\Config\ScopeConfigInterface;
1111
use Magento\Framework\App\ObjectManager;
1212
use Magento\Framework\DataObject;
13+
use Magento\Framework\Serialize\Serializer\Json;
1314
use Magento\Framework\Serialize\Serializer\JsonHexTag;
1415
use Magento\Framework\View\Element\Block\ArgumentInterface;
1516
use Magento\Framework\Escaper;
@@ -44,13 +45,15 @@ class Breadcrumbs extends DataObject implements ArgumentInterface
4445
/**
4546
* @param Data $catalogData
4647
* @param ScopeConfigInterface $scopeConfig
48+
* @param Json|null $json
4749
* @param JsonHexTag $jsonSerializer
4850
* @param Escaper|null $escaper
4951
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
5052
*/
5153
public function __construct(
5254
Data $catalogData,
5355
ScopeConfigInterface $scopeConfig,
56+
Json $json = null,
5457
JsonHexTag $jsonSerializer,
5558
Escaper $escaper = null
5659
) {
@@ -114,7 +117,7 @@ public function getJsonConfigurationHtmlEscaped() : string
114117
'useCategoryPathInUrl' => (int)$this->isCategoryUsedInProductUrl(),
115118
'product' => $this->escaper->escapeHtml($this->getProductName())
116119
]
117-
]
120+
]
118121
);
119122
}
120123

0 commit comments

Comments
 (0)