Project

General

Profile

Actions

Feature #93112

closed

Import whole directories in sites yaml files

Added by Simon Schaufelberger almost 4 years ago. Updated almost 2 years ago.

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

100%

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

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')

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Task #99025: Rewrite YamlFileLoaderTests to functional testsClosed2022-11-08

Actions
Related to TYPO3 Core - Feature #95307: Allow glob imports in site configuration yaml filesClosed2021-09-21

Actions
Actions

Also available in: Atom PDF