<?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\Controller\Category\View">
        <plugin name="codilar_snapchat_category_plugin"
                type="Codilar\Snapchat\Plugin\CategoryViewPlugin"/>
    </type>
    <type name="Magento\Catalog\Controller\Product\View">
        <plugin name="snapchat_product_view_plugin"
                type="Codilar\Snapchat\Plugin\ProductViewPlugin"/>
    </type>
    <type name="Magento\Wishlist\Controller\Index\Add">
        <plugin name="snapchat_add_wishlist_plugin"
                type="Codilar\Snapchat\Plugin\AddToWishlistPlugin"/>
    </type>
    <type name="Magento\Checkout\Controller\Onepage\Success">
        <plugin name="snapchat_purchase_plugin"
                type="Codilar\Snapchat\Plugin\PurchasePlugin"/>
    </type>
    <type name="Magento\Customer\Model\AccountManagement">
        <plugin name="codilar_snapchat_customer_register_plugin"
                type="Codilar\Snapchat\Plugin\CustomerRegisterPlugin"
                sortOrder="10"
                disabled="false"/>
    </type>
    <type name="Magento\Search\Model\Query">
        <plugin name="codilar_snapchat_search_plugin"
                type="Codilar\Snapchat\Plugin\SearchTrackPlugin"/>
    </type>
</config>
