Global navigation

   Documentation Center
   eZ Studio & eZ Platform
     User Manual
     Technical Manual
     Glossary
   eZ Publish 4.x / legacy

 
eZ Publish (5.x)

eZ Publish 5.x | For eZ Platform & eZ Studio topics see Technical manual and User manual, for eZ Publish 4.x and Legacy topics see eZ Publish legacy

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
eZ Publish core configuration is prefixed by ezsettings namespace, while internal configuration (not to be used directly) is prefixed by ezpublish namespace.
Tip

Note that using semantic configuration is better than normal service configuration.

You will learn about it in the Cookbook on How to expose a semantic configuration for a BundleFor configuration that is meant to be exposed to an end-user (or end-developer), it's usually a good idea to also implement semantic configuration.

Note that it is also possible to implement SiteAccess aware semantic configuration.

 

Example

Code Block
themeRDark
titleConfiguration
parameters:
    myapp.parameter.name: someValue
    myapp.boolean.param: true
    myapp.some.hash:
        foo: bar
        an_array: [apple, banana, pear]

...

Inject the ConfigResolver in your services

Tip

Instead of injecting the whole ConfigResolver service, you may directly inject your SiteAcinject your SiteAccess aware settings (aka dynamic settings) into your own servicescess aware settings (aka dynamic settings) into your own services.

 

You can use the ConfigResolver in your own services whenever needed. To do this, just inject the ezpublish.config.resolver service:

...