snce / ezpublish-legacy-utility-bundle
EzPublishLegacyUtilityBundle is an extension for eZ Publish 5+ providing extra legacy functionalities
Installs: 5 422
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 4
Open Issues: 0
Type:symfony-bundle
Requires
This package is not auto-updated.
Last update: 2024-12-20 13:29:32 UTC
README
EzPublishLegacyUtilityBundle is an extension for eZ Publish 5+ providing extra legacy functionalities
Installation
- To install EzPublishLegacyUtilityBundle run the following command
$ php composer.phar require snce/ezpublish-legacy-utility-bundle
- 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
- 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"
]
- 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"
}
}
}
- Add a site.ini.append.php.dist file in ezpublish_legacy/settings/override folder with your preferred settings_
License
See License file