Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-22510

As a developer, I want to directly inject dynamic settings in my services

    XMLWordPrintable

    Details

      Description

      For now, if one want to develop a service that needs siteaccess-aware settings (e.g. language settings), they need to inject the ConfigResolver and get the needed settings from it.

      This is not very convenient nor explicit.
      Goal of this story is to allow developers to inject these dynamic settings explicitly from their service definition (yml, xml, annotation...).

      Static container parameters follows the %<parameter_name>% syntax in Symfony.
      Dynamic parameters would follow:
      $<parameter_name>[, <namespace>[, <scope>]]$

      Default namespace is still ezsettings, and default scope is current siteaccess.

      See implementation in EzPublishCoreExtraBundle for inspiration, but try to take advantage of ExpressionLanguage component (Introduced in Symfony 2.4, but can be used standalone).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jerome.vieilledent-obsolete@ez.no Jérôme Vieilledent (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 45 minutes
                  45m