snce/ezpublish-legacy-utility-bundle 问题修复 & 功能扩展

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

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

snce/ezpublish-legacy-utility-bundle

最新稳定版本:v1.0.6

Composer 安装命令:

composer require snce/ezpublish-legacy-utility-bundle

包简介

EzPublishLegacyUtilityBundle is an extension for eZ Publish 5+ providing extra legacy functionalities

README 文档

README

EzPublishLegacyUtilityBundle is an extension for eZ Publish 5+ providing extra legacy functionalities

Installation

  1. To install EzPublishLegacyUtilityBundle run the following command
$ php composer.phar require snce/ezpublish-legacy-utility-bundle
  1. Enable EzSystemsCommentsBundle in the kernel
// ezpublish/EzPublishKernel.php

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

Composer scripts

Legacy DB settings update

Main purpose of the script is to avoid ezpublish_legacy/settings/override/site.ini.append.php versioning. The script will replace the DB infos using the Symfony parameters

Enable the script

  1. Add the script to your Composer post-install-cmd and post-update-cmd (After the Incenteev\ParameterHandler\ScriptHandler::buildParameters script)
"post-install-cmd": [
           // ...
           "Snce\\EzPublishLegacyUtilityBundle\\Composer\\ScriptHandler::siteIniUpdate"
       ]
"post-update-cmd": [
           // ...
           "Snce\\EzPublishLegacyUtilityBundle\\Composer\\ScriptHandler::siteIniUpdate"
       ]
  1. Add the extra parameters, replacing the parameters-map values with your Symfony parameters
"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. Add a site.ini.append.php.dist file in ezpublish_legacy/settings/override folder with your preferred settings_

License

See License file

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-25