<?xml version="1.0"?>
<!--
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Unique Product URL for Magento 2
 */-->

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Sitemap\Model\ResourceModel\Catalog\Product">
        <plugin name="Amasty_SeoSingleUrl::sitemap"
                type="Amasty\SeoSingleUrl\Plugin\Sitemap\Model\ResourceModel\Catalog\Product"/>
    </type>

    <type name="Amasty\XmlSitemap\Model\Sitemap\Hreflang\UrlProvider\RewriteUrlProvider">
        <plugin name="Amasty_SeoSingleUrl::amasty_xmlsitemap"
                type="Amasty\SeoSingleUrl\Plugin\XmlSitemap\Model\Sitemap\HreflangProvider\ModifyUrl"/>
    </type>

    <type name="Amasty\XmlSitemap\Model\Source\Product">
        <plugin name="Amasty_SeoSingleUrl::amasty_xmlsitemap_product"
                type="Amasty\SeoSingleUrl\Plugin\XmlSitemap\Model\Source\Product\ModifyUrl"/>
    </type>
</config>
