<?xml version="1.0"?>
<!--
/**
 * Simplyin HyvaPayment Frontend Dependency Injection Configuration
 *
 * Configures frontend-specific dependency injection for the Hyva-compatible payment module.
 * This includes the theme detection plugin that ensures module assets only load when Hyva theme is active.
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    
    <!-- Hyva Theme Detection Plugin -->
    <!-- Ensures module assets only load when Hyva theme is active (Requirements 1.3, 1.4) -->
    <type name="Magento\Framework\View\Layout">
        <plugin name="simplyin_hyvapayment_theme_detection"
                type="Simplyin\HyvaPayment\Plugin\HyvaThemeDetection"
                sortOrder="10"/>
    </type>
    
</config>
