espressobytes/mergeconfigfiles 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

espressobytes/mergeconfigfiles

Composer 安装命令:

composer require espressobytes/mergeconfigfiles

包简介

Merge Config Files for Magento 2

README 文档

README

Introduction

This module has the purpose to merge two config-files (in the form of config.php) to a new config-file

Installation

Installation via composer

composer require espressobytes/mergeconfigfiles

Usage

In Magento-Root, use:

 bin/magento config-merge:merge-files <input config file 1> <input config file 2> <output config file> [<output config file> Default: app/etc/]

Example:

 bin/magento config-merge:merge-files config.php config_build_addons.php config_buildsystem.php

Integration within deployment of Magento 2

To use this command within the deployment of Magento, the default command list has to be modified. You can do that via composer-patches:

In your `composer.json add (example):

...
"extra": {
    "patches": {
        "magento/magento2-base": {
            "Add new Command to CommandList": "patches/composer/magento2base_add_command.patch"
        },

Following this example, you have to have a new patch-file in the folder patches/composer named magento2base_add_command.patch.

Add this content to that file:

Index: a/setup/src/Magento/Setup/Console/CommandList.php
<+>UTF-8
===================================================================
--- a/setup/src/Magento/Setup/Console/CommandList.php
+++ a/setup/src/Magento/Setup/Console/CommandList.php
@@ -74,7 +74,8 @@
             \Magento\Setup\Console\Command\RollbackCommand::class,
             \Magento\Setup\Console\Command\UpgradeCommand::class,
             \Magento\Setup\Console\Command\UninstallCommand::class,
-            \Magento\Setup\Console\Command\DeployStaticContentCommand::class
+            \Magento\Setup\Console\Command\DeployStaticContentCommand::class,
+            \Espressobytes\MergeConfigFiles\Command\MergeConfigFilesCommand::class
         ];
     }

统计信息

  • 总下载量: 1.3k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2020-06-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固