snce/ezpublish-legacy-utility-bundle

EzPublishLegacyUtilityBundle 是为 eZ Publish 5+ 提供额外旧版功能的扩展

v1.0.6 2018-02-12 08:04 UTC

This package is not auto-updated.

Last update: 2024-09-27 12:33:10 UTC


README

EzPublishLegacyUtilityBundle 是为 eZ Publish 5+ 提供额外旧版功能的扩展

安装

  1. 要安装 EzPublishLegacyUtilityBundle,请运行以下命令
$ php composer.phar require snce/ezpublish-legacy-utility-bundle
  1. 在内核中启用 EzSystemsCommentsBundle
// ezpublish/EzPublishKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Snce\EzPublishLegacyUtilityBundle\SnceEzPublishLegacyUtilityBundle(),
    );
}

Composer 脚本

旧版数据库设置更新

该脚本的主要目的是避免 ezpublish_legacy/settings/override/site.ini.append.php 版本控制。脚本将使用 Symfony 参数替换数据库信息

启用脚本

  1. 将脚本添加到您的 Composer post-install-cmd 和 post-update-cmd(在 Incenteev\ParameterHandler\ScriptHandler::buildParameters 脚本之后)
"post-install-cmd": [
           // ...
           "Snce\\EzPublishLegacyUtilityBundle\\Composer\\ScriptHandler::siteIniUpdate"
       ]
"post-update-cmd": [
           // ...
           "Snce\\EzPublishLegacyUtilityBundle\\Composer\\ScriptHandler::siteIniUpdate"
       ]
  1. 添加额外的参数,将参数-map 值替换为您的 Symfony 参数
"extra": {
           "ezpublish-legacy-utility":{
               "parameters-file": "ezpublish/config/parameters.yml",
               "legacy-site_ini": "ezpublish_legacy/settings/override/site.ini.append.php",
               "legacy-site_ini-dist": "ezpublish_legacy/settings/override/site.ini.append.php.dist",
               "parameters-map": {
                   "Server": "db_host",
                   "Port": "db_port",
                   "User": "db_user",
                   "Password": "db_password",
                   "Database": "db_dbname"
               }
           }
       }
  1. 在 ezpublish_legacy/settings/override 文件夹中添加一个 site.ini.append.php.dist 文件,包含您首选的设置_

许可证

许可证文件