#95307Allow glob imports in site configuration yaml files
Description
I have several websites in one installation which share all the same routes so I extracted them into a separate yaml file like this:
imports:
- { resource: '../../shared/Index.yaml' }
base: 'https://www.example.de/'
#...
The Index.yaml file currently looks like this:
imports:
- { resource: 'routeEnhancers/Plugin1.yaml' }
- { resource: 'routeEnhancers/Plugin2.yaml' }
- { resource: 'routeEnhancers/Plugin3.yaml' }
- { resource: 'routeEnhancers/FeLogin.yaml' }
- { resource: 'routeEnhancers/FormFormframework.yml' }
- { resource: 'routeEnhancers/PageTypeSuffix.yaml' }
but it would be great if i could reduce it to just 1 line:
imports:
- { resource: 'routeEnhancers/*.yaml'}
I thought that the same yaml file importer like the one from symfony is in use but TYPO3 has it’s own implementation. See https://symfony.com/blog/new-in-symfony-3-3-import-config-files-with-glob-patterns and typo3/sysext/core/Classes/Configuration/Loader/YamlFileLoader.php in comparison with vendor/symfony/dependency-injection/Loader/YamlFileLoader.php which i though is more or less the same but the code is very different.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 6
- Feature #78917Integrate Element Browser for creating links
- Feature #86409Allow usage of env vars in site configuration
- Feature #86803Possibility to import other yaml files into a yaml site configuration
- Feature #88742Allow relative paths in Yaml file imports
- Feature #90267Custom placeholder processing in site config
- Feature #93112Import whole directories in sites yaml files