<?xml version="1.0"?>
<!--
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Meta Tags Templates 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\Framework\View\Page\Title">
        <plugin name="Amasty_Meta::PageTitle" type="Amasty\Meta\Plugin\View\Page\Title" />
    </type>

    <type name="Magento\Framework\View\Page\Config">
        <plugin name="Amasty_Meta::PageConfig" type="Amasty\Meta\Plugin\View\Page\Config" sortOrder="30"/>
    </type>

    <type name="Magento\Theme\Block\Html\Title">
        <plugin name="Amasty_Meta::PageConfig2" type="Amasty\Meta\Plugin\Theme\Block\Html\Title" />
    </type>

    <!-- add text in category end -->
    <type name="Magento\Catalog\Block\Category\View">
        <plugin name="Amasty_Meta::PageConfig4" type="Amasty\Meta\Plugin\Catalog\Block\Category\View" />
    </type>

    <!-- add description and short description for product -->
    <type name="Magento\Catalog\Helper\Output">
        <plugin name="Amasty_Meta::PageConfig5" type="Amasty\Meta\Plugin\Catalog\Helper\Output" />
    </type>

    <!-- replace canonical-->
    <type name="Magento\Framework\View\Asset\Repository">
        <plugin name="Amasty_Meta::PageConfig6" type="Amasty\Meta\Plugin\View\Asset\Repository" />
    </type>

    <type name="Amasty\SeoRichData\Model\JsonLd\ProductInfo">
        <plugin name="Amasty_Meta::resolve-data-for-snippets" type="Amasty\Meta\Plugin\SeoRichData\Block\Product" />
    </type>

    <type name="Amasty\ShopbyBrand\Controller\Router">
        <plugin name="Amasty_Meta::detect-brand-page" type="Amasty\Meta\Plugin\ShopbyBrand\Controller\RouterPlugin" />
    </type>
</config>
