<?xml version="1.0"?>
<!--
/**
 * Hyvä Themes - https://hyva.io
 * Copyright © Hyvä Themes. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <!-- Refer to app/etc/di.xml for the declaration of the core virtual types used below. -->
    <!-- page_layout XML -->
    <virtualType name="hyvaPageLayoutFileSourceBaseReset" type="Hyva\BaseLayoutReset\View\Layout\File\Collector\Decorator\BaseLayoutResetDecorator">
        <arguments>
            <argument name="subject" xsi:type="object">pageLayoutFileSourceBaseSorted</argument>
        </arguments>
    </virtualType>
    <virtualType name="pageLayoutFileCollectorAggregated">
        <arguments>
            <argument name="baseFiles" xsi:type="object">hyvaPageLayoutFileSourceBaseReset</argument>
        </arguments>
    </virtualType>

    <!-- layout XML -->
    <virtualType name="hyvaLayoutFileSourceBaseSorted" type="Magento\Framework\View\File\Collector\Decorator\ModuleDependency">
        <arguments>
            <argument name="subject" xsi:type="object">layoutFileSourceBaseFiltered</argument>
        </arguments>
    </virtualType>
    <virtualType name="layoutFileSourceBaseSorted" type="Hyva\BaseLayoutReset\View\Layout\File\Collector\Decorator\BaseLayoutResetDecorator">
        <arguments>
            <argument name="subject" xsi:type="object">hyvaLayoutFileSourceBaseSorted</argument>
        </arguments>
    </virtualType>
</config>
