1
に、彼らはこのように少し見えているはなぜregistration.phpとアプリの/ etc/config.phpの共存Magento2でmagento2
アプリの/ etc/config.phpの
を導入しています。
<?php
return array (
'modules' =>
array (
'Magento_Store' => 1,
'Magento_Contacts' => 1,
'Namespace_Modulename' => 1
),
);
すべてのモジュールが存在します。 We can enable or disable the module using 1/0 over there
。それはMagentoにもmodule it should go through in each request
と伝えます。 Magentoがすでにどのモジュールを通過しているかを知っていて、registration.php
ファイルがapp/code/namespace/modulename
の内部にあるという目的が何であるかわからない場合。