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

hasParameter() of LegacyConfigResolver causes an error, if the requested parameter does not exist.

    XMLWordPrintable

    Details

      Description

      An error occurs if you want to check the existence of a specfic parameter, which is not defined. For example:
      $configResolver->hasParameter('parameter_name', 'name_space');

      The message is like:

      ContextErrorException: Notice: Undefined offset: 1 in /path/to/symfony/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/DependencyInjection/Configuration/LegacyConfigResolver.php line 151

      In that line it looks like this is only the case if the parameter name contains no peroid. As long as the LegacyConfigResolver is considered to be part of the ChainConfigResolver, this is not the best implementation.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              JensG Jens Görisch
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: