/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
dev/tests/api-functional/_files/Magento/TestModuleMSC/etc/di.xml
58 строк
3 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 10:44
22 окт 2025, 10:44
264bea2
Код
Авторство
О чём код?
<?xml version="1.0"?> <!-- /** * Copyright 2015 Adobe * All Rights Reserved. */ --> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <preference for="Magento\TestModuleMSC\Api\AllSoapAndRestInterface" type="Magento\TestModuleMSC\Model\AllSoapAndRest" /> <preference for="Magento\TestModuleMSC\Api\Data\ItemInterface" type="Magento\TestModuleMSC\Model\Data\Item" /> <preference for="Magento\TestModuleMSC\Api\Data\CustomAttributeDataObjectInterface" type="Magento\TestModuleMSC\Model\Data\CustomAttributeDataObject" /> <preference for="Magento\TestModuleMSC\Api\Data\CustomAttributeNestedDataObjectInterface" type="Magento\TestModuleMSC\Model\Data\CustomAttributeNestedDataObject" /> <virtualType name="Magento\TestModuleMSC\Service\Config\TestModuleMSCMetadataConfig" type="Magento\Framework\Api\ExtensionAttribute\Config\MetadataConfig"> <arguments> <argument name="attributeMetadataBuilder" xsi:type="object">Magento\TestModuleMSC\Model\Data\Eav\AttributeMetadataBuilder</argument> <argument name="dataObjectClassName" xsi:type="string">Magento\TestModuleMSC\Model\Data\Item</argument> </arguments> </virtualType> <type name="Magento\TestModuleMSC\Model\Data\Item"> <arguments> <argument name="resource" xsi:type="object">Magento\TestModuleMSC\Model\ResourceModel\Item</argument> <argument name="metadataService" xsi:type="object">Magento\TestModuleMSC\Service\Config\TestModuleMSCMetadataConfig</argument> </arguments> </type> <type name="Magento\TestModuleMSC\Model\Data\CustomAttributeDataObject"> <arguments> <argument name="resource" xsi:type="object">Magento\TestModuleMSC\Model\ResourceModel\Item</argument> </arguments> </type> <virtualType name="CustomAttributeMap" type="Magento\Framework\DataObject"> <arguments> <argument name="data" xsi:type="array"> <item name="customAttributeDataObjectInterface" xsi:type="string">Magento\TestModuleMSC\Api\Data\CustomAttributeDataObjectInterface</item> <item name="customAttributeNestedDataObjectInterface" xsi:type="string">Magento\TestModuleMSC\Api\Data\CustomAttributeNestedDataObjectInterface</item> </argument> </arguments> </virtualType> <type name="Magento\Framework\Webapi\ServiceTypeToEntityTypeMap"> <arguments> <argument name="serviceTypeToEntityTypeMap" xsi:type="array"> <item name="Magento\TestModuleMSC\Api\AllSoapAndRestInterface" xsi:type="string">1</item> </argument> </arguments> </type> <type name="Magento\Eav\Model\TypeLocator\ComplexType"> <arguments> <argument name="backendModelToAttributeTypeMap" xsi:type="array"> <item name="Magento\TestModuleMSC\Api\AllSoapAndRestInterface" xsi:type="array"> <item name="Magento\Sample\BackendType1" xsi:type="string">Magento\TestModuleMSC\Api\Data\CustomAttributeDataObjectInterface</item> <item name="Magento\Sample\BackendType2" xsi:type="string">Magento\TestModuleMSC\Api\Data\CustomAttributeNestedDataObjectInterface</item> </item> </argument> </arguments> </type> </config>