Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/272.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Magento2升级脚本将模块从模块阵列中删除_Php_Magento_Magento2_Magento 2.0 - Fatal编程技术网

Php Magento2升级脚本将模块从模块阵列中删除

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

我有我的模块配置

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">
    
    <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__
);