https://github.com/sncegroup/ezpublishlegacyutilitybundle
Provide extra legacy functionalities to improve the eZ 5+ development
https://github.com/sncegroup/ezpublishlegacyutilitybundle
Last synced: 4 months ago
JSON representation
Provide extra legacy functionalities to improve the eZ 5+ development
- Host: GitHub
- URL: https://github.com/sncegroup/ezpublishlegacyutilitybundle
- Owner: SnceGroup
- License: gpl-2.0
- Created: 2015-02-25T16:46:17.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-02-12T08:05:14.000Z (over 8 years ago)
- Last Synced: 2025-08-10T20:27:04.458Z (12 months ago)
- Language: PHP
- Size: 12.7 KB
- Stars: 2
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SnceEzPublishLegacyUtilityBundle
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
```
2) 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"
]
```
3) 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"
}
}
}
```
4) Add a site.ini.append.php.dist file in ezpublish_legacy/settings/override folder with your preferred settings_
## License
See [License file](LICENSE)