[FEATURE] Allow glob patterns in yaml imports
To simplify imports in configuration and allow for compacter files, glob() patterns can now be used for importing files in the core YamlFileLoader. Example: imports: - { resource: "./**/*.yaml", glob: true } - { resource: "EXT:core/Tests/**/Configuration/**/SiteConfigs/*.yaml", glob: true } Resolves: #93112 Releases: main Change-Id: Ib352180444190c7d2cee5ed585d420b9a5b58d7d Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76462 Tested-by:core-ci <typo3@b13.com> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- typo3/sysext/core/Classes/Configuration/Loader/YamlFileLoader.php 11 additions, 3 deletions...sext/core/Classes/Configuration/Loader/YamlFileLoader.php
- typo3/sysext/core/Documentation/Changelog/12.1/Feature-93112-AllowGlobPatternsInYamlImports.rst 34 additions, 0 deletions...log/12.1/Feature-93112-AllowGlobPatternsInYamlImports.rst
- typo3/sysext/core/Tests/Functional/Configuration/Loader/Fixtures/Glob/01_ImportedFile.yaml 3 additions, 0 deletions...l/Configuration/Loader/Fixtures/Glob/01_ImportedFile.yaml
- typo3/sysext/core/Tests/Functional/Configuration/Loader/Fixtures/Glob/02_ImportedFile.yaml 2 additions, 0 deletions...l/Configuration/Loader/Fixtures/Glob/02_ImportedFile.yaml
- typo3/sysext/core/Tests/Functional/Configuration/Loader/Fixtures/LoadWithGlobbedImports.yaml 7 additions, 0 deletions...Configuration/Loader/Fixtures/LoadWithGlobbedImports.yaml
- typo3/sysext/core/Tests/Functional/Configuration/Loader/Fixtures/LoadWithGlobbedImportsWithPathTraversal.yaml 3 additions, 0 deletions...der/Fixtures/LoadWithGlobbedImportsWithPathTraversal.yaml
- typo3/sysext/core/Tests/Functional/Configuration/Loader/YamlFileLoaderTest.php 47 additions, 0 deletions...ts/Functional/Configuration/Loader/YamlFileLoaderTest.php
Please register or sign in to comment