我已经阅读了 Magento 的 DevDocs 并用谷歌搜索了这个问题,但通常缺少的registration.php
答案在这里并不适用。
我在发布的 CE 2.0.0 版本上,我只是想启用我的第一个最小测试模块,magento/vendor/
但是
bin/magento module:enable -c Tchsl_Test
结果是:
未知模块:“Tchsl_Test”
我基于模块的命名约定和文件位置vendor/magento/
在vendor/tchsl/module-test/etc/module.xml
我有
<config xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Tchsl_Test" />
</config>
在vendor/tchsl/module-test/registration.php
我有
<?php
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'Tchsl_Test',
__DIR__
);
我错过了什么?