avstudnitz/disable-modules

添加一个控制台命令,以显示所有可以安全禁用的模块,因为这些模块没有声明任何依赖项

安装数: 69,192

依赖者: 0

建议者: 0

安全性: 0

星标: 99

关注者: 8

分支: 17

开放问题: 6

类型:magento2-module

1.0.5 2020-08-27 09:06 UTC

This package is auto-updated.

Last update: 2024-08-27 17:36:07 UTC


README

添加了一个shell命令info:dependencies:show-removable,它导出所有没有依赖项的模块

事实

描述

按照以下方式调用新命令

$ 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上测试)

安装说明

  1. 使用上述密钥通过Composer安装扩展,或将所有文件复制到新创建的目录app/code/AvS/DisableModules/中,该目录位于Magento 2根目录。
  2. 通过调用bin/magento module:enable AvS_DisableModules启用扩展。
  3. 运行bin/magento setup:upgrade

卸载

  1. 通过调用bin/magento module:uninstall AvS_DisableModules卸载扩展。
  2. app/code/AvS/DisableModules/中删除所有扩展文件,或者如果您使用Composer安装了扩展,请使用Composer删除扩展。

支持

如果您对此扩展有任何问题,请在GitHub上创建问题。

贡献

任何贡献都将非常受欢迎。向代码贡献的最佳方式是在GitHub上打开一个pull request

开发者

Andreas von Studnitz,integer_net

http://www.integer-net.com

@avstudnitz

许可

OSL - 开源软件许可3.0

版权

(c) 2017 Andreas von Studnitz / integer_net GmbH