Php Magento2升级脚本将模块从模块阵列中删除
我有我的模块配置 app/code/SET/HelloWorld/etc.xml:Php Magento2升级脚本将模块从模块阵列中删除,php,magento,magento2,magento-2.0,Php,Magento,Magento2,Magento 2.0,我有我的模块配置 app/code/SET/HelloWorld/etc.xml: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../lib/internal/Magento/Framework/App/etc/routes.xsd"> &l
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../lib/internal/Magento/Framework/App/etc/routes.xsd">
<router id="standard">
<route id="helloworld" frontName="helloworld">
<module name="SET_HelloWorld" />
</route>
</router>
</config>
但是在运行bin/magento安装程序:升级之后,
te config.php数组中的键消失了
有人能告诉我为什么吗?我发现我错过了Registration.php
<?php
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'SET_HelloWorld',
__DIR__
);
<?php
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'SET_HelloWorld',
__DIR__
);