<?xml version="1.0"?>
<!--
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Import-Export Core for Magento 2 (System)
 */-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <preference for="Amasty\ImportExportCore\Api\Config\ConfigClass\ConfigClassInterface" type="Amasty\ImportExportCore\Config\ConfigClass\ConfigClass"/>
    <preference for="Amasty\ImportExportCore\Api\Config\ConfigClass\ArgumentInterface" type="Amasty\ImportExportCore\Config\ConfigClass\Argument"/>
    <preference for="Amasty\ImportExportCore\Api\Profile\RunProfileResponseInterface" type="Amasty\ImportExportCore\Model\Profile\RunProfileResponse"/>
    <preference for="Amasty\ImportExportCore\Api\Profile\ProfileManagerInterface" type="Amasty\ImportExportCore\Model\ProfileManager"/>
    <preference for="Amasty\ImportExportCore\Api\Process\ProcessStatusInterface" type="Amasty\ImportExportCore\Model\Process\ProcessStatus"/>

    <virtualType name="AmastyImportExportCompiler" type="Magento\Framework\View\TemplateEngine\Xhtml\Compiler" shared="false">
        <arguments>
            <argument name="compilerText" xsi:type="object">Magento\Framework\View\TemplateEngine\Xhtml\Compiler\Text</argument>
            <argument name="compilerAttribute" xsi:type="object">Magento\Framework\View\TemplateEngine\Xhtml\Compiler\Attribute</argument>
            <argument name="compilerCdata" xsi:type="object">Magento\Framework\View\TemplateEngine\Xhtml\Compiler\Cdata</argument>
            <argument name="compilerComment" xsi:type="object">Magento\Framework\View\TemplateEngine\Xhtml\Compiler\Comment</argument>
            <argument name="elementCompilers" xsi:type="array">
                <item name="include" xsi:type="object">Amasty\ImportExportCore\Config\SchemaReader\ConfigCompiler\IncludeElement</item>
            </argument>
        </arguments>
    </virtualType>

    <type name="Magento\Framework\Mail\TransportInterface">
        <plugin name="customer-sample-data-disable-registration-email-send" disabled="true"/>
    </type>

    <type name="Magento\Framework\Console\CommandListInterface">
        <arguments>
            <argument name="commands" xsi:type="array">
                <item name="am_import_export_run_profile" xsi:type="object">Amasty\ImportExportCore\Console\Command\RunProfileCommand</item>
                <item name="am_import_export_show_profile_runners" xsi:type="object">Amasty\ImportExportCore\Console\Command\ShowProfileRunnersList</item>
                <item name="am_import_export_check_profile_status" xsi:type="object">Amasty\ImportExportCore\Console\Command\CheckProfileStatus</item>
            </argument>
        </arguments>
    </type>
</config>
