Magento 2では、モジュールに含まれるXML構成ファイルの1つがresources.xmlファイルです。たとえば、販売モジュールには1つの
#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リソースがためです。
非セットアップリソースの場合、これは、異なる資格情報/接続文字列情報を持つデータベース接続クラスを追加するための別の方法ですか?または、他の何か?
vendor\magento\framework\App\etc\resources.xsd"(4,41)。任意のアイデアを与えることができます