浏览文章
文章信息
Magento2 覆写模块
14355
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Mjd_Discount" setup_version="1.0.2">
<!--<sequence>
<module name="Magento_Store"/>
</sequence>-->
</module>
</config>注释部分就是需要覆写的模块。
注释部分的解释:模块中要覆写的模块,覆写规则是,只要路径与要覆写的目标模块路径一致即可达到覆写功能,无需di.xml依赖注入。