Problem/Motivation
Configuration values that are nested are not currently supported.
Steps to reproduce
- Create a controller and route.
- Define nested configuration, like
my_module.settings.foo.bar. - Set the
_configrequirement 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.
Issue fork config_route_requirements-3548036
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
Comment #2
alexdmccabeComment #6
alexdmccabeComment #8
alexdmccabe