Feature #95307
Updated by Simon Schaufelberger about 3 years ago
I have several websites in one installation which share all the same routes so I extracted them into a separate yaml file like this: <pre><code class="yaml"> imports: - { resource: '../../shared/Index.yaml' } base: 'https://www.example.de/' #... </code></pre> The Index.yaml file currently looks like this: <pre><code class="yaml"> 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' } </code></pre> but it would be great if i could reduce it to just 1 line: <pre><code class="yaml"> imports: - { resource: 'routeEnhancers/*.yaml'} </code></pre> 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@ `typo3/sysext/core/Classes/Configuration/Loader/YamlFileLoader.php` in comparison with @vendor/symfony/dependency-injection/Loader/YamlFileLoader.php@ `vendor/symfony/dependency-injection/Loader/YamlFileLoader.php` which i though is more or less the same but the code is very different.