<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Catalog\Block\Product\View\Options\Type\Select">
        <plugin disabled="false" name="dinhvan_catalog_select" sortOrder="10" type="Dinhvan\Catalog\Plugin\Block\Product\View\Options\Type\Select"/>
    </type>
    <type name="Magento\Catalog\Pricing\Render\FinalPriceBox">
        <plugin disabled="false" name="dinhvan_final_price_box" sortOrder="10" type="Dinhvan\Catalog\Plugin\Product\Pricing\FinalPriceBox"/>
    </type>
    <type name="Magento\Framework\Console\CommandList">
        <arguments>
            <argument name="commands" xsi:type="array">
                <item name="dinhvan_catalog:regenerate_url_rewrites" xsi:type="object">Dinhvan\Catalog\Console\Command\RegenerateUrlRewrites</item>
            </argument>
        </arguments>
    </type>
    <type name="Magento\ConfigurableProduct\Block\Product\View\Type\Configurable">
        <plugin name="changeAllowProductsBehaviour" sortOrder="10" type="Dinhvan\Catalog\Model\ConfigurableProduct\Block\Product\View\Type\Configurable\Plugin" />
    </type>

    <preference for="Magento\ConfigurableProduct\Helper\Data" type="Dinhvan\Catalog\Preference\ConfigurableProduct\Helper\Data"/>

    <type name="Magento\Catalog\Block\Product\ListProduct">
        <plugin name="Amasty_Shopby::wrapProductList" disabled="true"/>
    </type>
</config>
