Problem/Motivation

Configuration values that are nested are not currently supported.

Steps to reproduce

  1. Create a controller and route.
  2. Define nested configuration, like my_module.settings.foo.bar.
  3. Set the _config requirement for the route to use that nested configuration.

The module will parse the config object name as my_module.settings.foo and the config key as bar.

Proposed resolution

Parse configuration names properly to allow nested values to be used.

Remaining tasks

  • Change the config name parsing in ConfigRouteSubscriber.
  • Make sure the current test cases pass with the new parsing.
  • Add test cases for nested configuration.
  • Make it clear in the user guide that nested configuration is supported.
  • Update the change log.
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

alexdmccabe created an issue. See original summary.

alexdmccabe’s picture

Assigned: Unassigned » alexdmccabe

  • alexdmccabe committed 8a1792e3 on 1.0.x
    Merge branch '3548036-support-nested-configuration' into '1.0.x'
    
    Issue...

alexdmccabe’s picture

Status: Active » Fixed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

alexdmccabe’s picture

Assigned: alexdmccabe » Unassigned

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.