在Magento 2中,模块可能具有的XML配置文件之一是resources.xmlfile。例如,销售模块有一个
#File: vendor/magento/module-sales/etc/resources.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
 * Copyright © 2015 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/resources.xsd">
    <resource name="sales_setup" extends="core_setup" />
    <resource name="sales" extends="core" />
</config>
有谁知道这些文件在Magento 2中的用途是什么?它们似乎是旧的Magento 1顶级<resources/>节点。然而,由于Magento的不再使用设置资源模型/迁移(相反在Magento的2使用类Setup/InstallSchema.php,Setup/InstallData.php,Setup/UpgradeSchema.php,Setup/UpgradeData.php用于安装/迁移样脚本),它不是100%清除哪些sales_setup资源是。
对于非设置资源,这是否是添加具有不同凭据/连接字符串信息的数据库连接类的另一种方法?或者是其他东西?
                  @AmitBera告诉我们resources.xml中的数据应如何显示,而没有告诉我们系统将这些文件用于什么目的。
                
                
                  
                    —
                    艾伦·风暴
                    
                  
                
              
                  对不起,我没有任何明确的想法这个。如果我得到任何一点的话,我会发布
                
                
                  
                    —
                    阿米特·贝拉
                    
                  
                
              
vendor\magento\framework\App\etc\resources.xsd"(4,41)。可能有任何想法