Feature #93112

Import whole directories in sites yaml files

Added by Simon Schaufelberger 2 months ago. Updated 2 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Start date:
2020-12-19
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
symfony, yaml, yml
Complexity:
Sprint Focus:

Description

Symfony itself supports importing whole folders with this syntax: https://symfony.com/blog/new-in-symfony-3-3-import-config-files-with-glob-patterns

but since TYPO3 has its own implementation around it in \TYPO3\CMS\Core\Configuration\Loader\YamlFileLoader::loadAndParse, this is not supported.

This would be super helpful in multisite environments with shared configs with having multiple route enhancers that are automatically imported when adding a new one instead of defining them all manually like so:

config
  - shared
    - routeEnhancers
      - routerEnhancer1.yaml
      - routerEnhancer2.yaml
      - routerEnhancer2.yaml
    - index.yaml (imports: 'routeEnhancers/')
  - sites
    - website1
      - config.yaml (imports: '../../shared/Index.yaml')
#1

Updated by Simon Schaufelberger 2 months ago

  • Description updated (diff)
#2

Updated by Simon Schaufelberger 2 months ago

  • Description updated (diff)
#3

Updated by Simon Schaufelberger 2 months ago

  • Category set to Link Handling, Site Handling & Routing

Also available in: Atom PDF