<?xml version="1.0"?>
<!--
/**
 * Webkul Software.
 *
 * @category  Webkul
 * @package   Webkul_Base
 * @author    Webkul Software Private Limited
 * @copyright Webkul Software Private Limited (https://webkul.com)
 * @license   https://store.webkul.com/license.html
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <preference for="Webkul\Base\Api\LicenseVerifierInterface" type="Webkul\Base\Model\LicenseVerifier"/>
    <preference for="Webkul\Base\Api\ConsentRepositoryInterface" type="Webkul\Base\Model\ConsentRepository"/>
    <preference for="Webkul\Base\Api\Data\LicensedModuleInterface" type="Webkul\Base\Model\LicensedModule"/>

    <!--
        Consuming Webkul modules add themselves to this list via their own di.xml.
        Minimal entry (name defaults to the array key, title derives from name):

            <item name="Webkul_Marketplace" xsi:type="array">
                <item name="enable_path" xsi:type="string">marketplace/general_settings/enable_module</item>
            </item>

        The optional "enable_path" (full "section/group/field" path of the module's
        enable toggle) opts the module into the enable-gate: it cannot be switched on
        until verified. The gate is applied automatically by
        Webkul\Base\Plugin\ConfigEnableGate — no per-module events.xml is needed.
    -->
    <type name="Webkul\Base\Model\LicenseRegistry">
        <arguments>
            <argument name="modules" xsi:type="array"/>
        </arguments>
    </type>
</config>
