Smile-SA/elasticsuite

View on GitHub
src/module-elasticsuite-core/etc/frontend/di.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0"?>
<!--
/**
 * Smile_ElasticsuiteCore frontend dependency injection configuration.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Smile ElasticSuite to newer
 * versions in the future.
 *
 * @category  Smile
 * @package   Smile\ElasticsuiteCore
 * @author    Romain RUAUD <romain.ruaud@smile.fr>
 * @author    Aurelien FOUCRET <aurelien.foucret@smile.fr>
 * @copyright 2020 Smile
 * @license   Open Software License ("OSL") v. 3.0
 */
 -->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Search\Model\Autocomplete">
        <arguments>
            <argument name="dataProviders" xsi:type="array">
                <item name="10" xsi:type="object">Smile\ElasticsuiteCore\Model\Autocomplete\Terms\DataProvider</item>
            </argument>
        </arguments>
    </type>

    <type name="Magento\Version\Controller\Index\Index">
        <plugin name="elasticsuiteVersionPlugin" type="Smile\ElasticsuiteCore\Plugin\Controller\Version\IndexPlugin"/>
    </type>
</config>