avstudnitz / disable-modules
添加一个控制台命令,以显示所有可以安全禁用的模块,因为这些模块没有声明任何依赖项
1.0.5
2020-08-27 09:06 UTC
Requires
- magento/framework: ~100.0||~101.0||~102.0||~103.0
README
添加了一个shell命令info:dependencies:show-removable
,它导出所有没有依赖项的模块
事实
- 版本:1.0.0
- GitHub上的扩展
- 直接下载链接
- Composer密钥:
avstudnitz/disable-modules
(在Packagist上注册)
描述
按照以下方式调用新命令
$ bin/magento info:dependencies:show-removable
您将得到以下输出
Report successfully processed. File "modules-removable.csv" generated.
文件“modules-removable.csv”将包含一个模块列表
"Modules without dependencies:"
" =========================== "
Magento_Weee
Magento_WebapiSecurity
Magento_Version
Magento_Usps
Magento_Ups
Magento_TaxImportExport
Magento_SwatchesLayeredNavigation
Magento_Swagger
Magento_Sitemap
Magento_SendFriend
Magento_SalesInventory
Magento_ProductVideo
Magento_Persistent
Magento_OfflinePayments
Magento_NewRelicReporting
Magento_Multishipping
Magento_LayeredNavigation
Magento_GroupedImportExport
Magento_GoogleOptimizer
Magento_GoogleAdwords
Magento_Fedex
Magento_EncryptionKey
Magento_DownloadableImportExport
Magento_Dhl
Magento_Deploy
Magento_CustomerImportExport
Magento_CurrencySymbol
Magento_ConfigurableImportExport
Magento_CheckoutAgreements
Magento_CatalogWidget
Magento_CatalogRuleConfigurable
Magento_Captcha
Magento_CacheInvalidate
Magento_BundleImportExport
Magento_Braintree
Magento_Authorizenet
Magento_AdvancedPricingImportExport
Magento_AdminNotification
Magento_Marketplace
Magento_BundleSampleData
Magento_SalesRuleSampleData
Magento_SalesSampleData
Magento_CustomerSampleData
Magento_CmsSampleData
Magento_TaxSampleData
Magento_GroupedProductSampleData
Magento_DownloadableSampleData
Magento_WidgetSampleData
Magento_MsrpSampleData
Magento_WishlistSampleData
Magento_ReviewSampleData
Magento_SwatchesSampleData
Magento_OfflineShippingSampleData
AvS_DisableModules
没有其他模块声明依赖于上述任何模块,因此它们可以安全删除(理论上)。要删除它们,请在要删除的模块名称前添加bin/magento module:disable
,例如
bin/magento module:disable Magento_Marketplace
需求
- PHP >= 5.6.0
兼容性
- Magento >= 2.1.0(未在2.0.x上测试)
安装说明
- 使用上述密钥通过Composer安装扩展,或将所有文件复制到新创建的目录
app/code/AvS/DisableModules/
中,该目录位于Magento 2根目录。 - 通过调用
bin/magento module:enable AvS_DisableModules
启用扩展。 - 运行
bin/magento setup:upgrade
。
卸载
- 通过调用
bin/magento module:uninstall AvS_DisableModules
卸载扩展。 - 从
app/code/AvS/DisableModules/
中删除所有扩展文件,或者如果您使用Composer安装了扩展,请使用Composer删除扩展。
支持
如果您对此扩展有任何问题,请在GitHub上创建问题。
贡献
任何贡献都将非常受欢迎。向代码贡献的最佳方式是在GitHub上打开一个pull request。
开发者
Andreas von Studnitz,integer_net
许可
版权
(c) 2017 Andreas von Studnitz / integer_net GmbH