HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/vhost/disk-apps/magento.bikenow.co/vendor/magento/module-swatches/etc/di.xml
<?xml version="1.0"?>
<!--
/**
 * Copyright © Magento, Inc. 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">
    <type name="Magento\Catalog\Model\ResourceModel\Eav\Attribute">
        <plugin name="save_swatches_option_params" type="Magento\Swatches\Model\Plugin\EavAttribute"/>
    </type>
    <type name="Magento\Catalog\Block\Product\AbstractProduct">
        <plugin name="add_product_object_to_image_data_array" type="Magento\Swatches\Model\Plugin\ProductImage" />
    </type>
    <type name="Magento\Catalog\Model\Product">
        <plugin name="exclude_swatch_attribute" type="Magento\Swatches\Model\Plugin\Product" />
    </type>
    <type name="Magento\LayeredNavigation\Block\Navigation\FilterRenderer">
        <plugin name="swatches_layered_renderer" type="Magento\Swatches\Model\Plugin\FilterRenderer" sortOrder="1" />
    </type>
    <type name="Magento\ConfigurableProduct\Model\Product\Type\Configurable">
        <plugin name="add_swatch_attributes_to_configurable" type="Magento\Swatches\Model\Plugin\Configurable" />
    </type>
    <type name="Magento\ConfigurableProduct\Observer\HideUnsupportedAttributeTypes">
        <arguments>
            <argument name="supportedTypes" xsi:type="array">
                <item name="swatch_visual" xsi:type="string">swatch_visual</item>
                <item name="swatch_text" xsi:type="string">swatch_text</item>
            </argument>
        </arguments>
    </type>
    <type name="Magento\Eav\Model\Attribute\FrontendType">
        <arguments>
            <argument name="config" xsi:type="array">
                <item name="select" xsi:type="array">
                    <item name="select" xsi:type="string">select</item>
                    <item name="swatch_visual" xsi:type="string">swatch_visual</item>
                    <item name="swatch_text" xsi:type="string">swatch_text</item>
                </item>
            </argument>
        </arguments>
    </type>
    <type name="Magento\Swatches\Model\SwatchAttributeCodes">
        <arguments>
            <argument name="cacheKey" xsi:type="string">swatch-attribute-list</argument>
            <argument name="cacheTags" xsi:type="array">
                <item name="0" xsi:type="const">Magento\Eav\Model\Entity\Attribute::CACHE_TAG</item>
            </argument>
        </arguments>
    </type>
    <type name="Magento\Catalog\Model\Product\Attribute\OptionManagement">
        <plugin name="swatches_product_attribute_optionmanagement_plugin" type="Magento\Swatches\Plugin\Eav\Model\Entity\Attribute\OptionManagement"/>
    </type>
    <type name="Magento\Eav\Model\Config">
        <arguments>
            <argument name="attributesForPreload" xsi:type="array">
                <item name="catalog_product" xsi:type="array">
                    <item name="swatch_image" xsi:type="string">catalog_product</item>
                </item>
            </argument>
        </arguments>
    </type>
</config>