contextualcode / legacy-settings-injection-bundle
eZ Publish 5 bundle to inject settings from a yml file into the legacy eZ Publish kernel.
v1.0.3
2020-02-07 13:37 UTC
Requires
- php: >=5.3.2
- ezsystems/ezpublish-kernel: *
- symfony/symfony: *
This package is auto-updated.
Last update: 2024-12-08 05:45:20 UTC
README
This is an eZ Publish 5 Symfony bundle to inject settings from a yml file into the legacy eZ Publish kernel.
It allows injecting different legacy settings for different siteaccesses.
Installation
- Run
composer require
:$ composer require contextualcode/legacy-settings-injection-bundle
- Enable this bundle in
app/AppKernel.php
(ezpublish/EzPublishKernel.php
) file by adding next line inregisterBundles
method:public function registerBundles() { $bundles = array( ... new ContextualCode\LegacySettingsInjectionBundle\ContextualCodeLegacySettingsInjectionBundle() );
Usage
There are two cases for this bundle usage.
Inject Legacy Settings for all Siteaccces
In your parameters.yml
file, add legacy settings like:
parameters:
injected_ini_files:
site.ini:
TemplateSettings:
Debug: enabled
Inject Legacy Settings for specific Siteaccces
In your config.yml
file, add legacy settings for different siteaccesses like:
contextual_code_legacy_settings_injection:
system:
frontend_group:
injected_ini_files:
site.ini:
TemplateSettings:
Debug: disabled
admin:
injected_ini_files:
site.ini:
TemplateSettings:
Debug: enabled