LegacySettingsInjectionBundle

UNIX name Owner Status
LegacySettingsInjectionBundle 7x stable
Version Compatible with
N/A N/A
eZ Publish 5 bundle to inject settings from a yml file into the legacy eZ Publish kernel.

Legacy Settings Injection Bundle

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

  1. Run composer require: $ composer require contextualcode/legacy-settings-injection-bundle
  2. Enable this bundle in app/AppKernel.php (ezpublish/EzPublishKernel.php) file by adding next line in registerBundles 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

No news yet.

This project has no reviews yet. Be the first one to review it!

No forum messages yet.