<?xml version="1.0"?>
<!--
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Store Locator Indexer for Magento 2 (System)
 */-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Amasty\StorelocatorIndexer\Model\Indexer\Location\LocationIndexer">
        <arguments>
            <argument name="indexBuilder" xsi:type="object">Amasty\StorelocatorIndexer\Model\Indexer\Location\IndexBuilder</argument>
        </arguments>
    </type>
    <type name="Amasty\StorelocatorIndexer\Model\Indexer\Product\ProductLocatorIndexer">
        <arguments>
            <argument name="indexBuilder" xsi:type="object">Amasty\StorelocatorIndexer\Model\Indexer\Product\IndexBuilder</argument>
        </arguments>
    </type>
    <type name="Amasty\StorelocatorIndexer\Model\Indexer\Content\ContentIndexer">
        <arguments>
            <argument name="indexBuilder" xsi:type="object">Amasty\StorelocatorIndexer\Model\Indexer\Content\IndexBuilder</argument>
        </arguments>
    </type>
    <type name="Amasty\Storelocator\Model\Validator\LocationProductComplexValidator">
        <arguments>
            <argument name="validators" xsi:type="array">
                <item name="product_attribute" xsi:type="object">Amasty\StorelocatorIndexer\Model\Validator\ProductAttributeValidator</item>
            </argument>
        </arguments>
    </type>
    <type name="Amasty\StorelocatorIndexer\Observer\LocationSave">
        <arguments>
            <argument name="indexers" xsi:type="array">
                <item name="content_indexer" xsi:type="string">amasty_store_locator_content_indexer</item>
                <item name="location_indexer" xsi:type="string">amasty_store_locator_indexer</item>
            </argument>
        </arguments>
    </type>
</config>
