Project

General

Profile

Actions

Feature #93112

closed

Import whole directories in sites yaml files

Added by Simon Schaufelberger over 3 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & 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 #1

Updated by Simon Schaufelberger over 3 years ago

  • Description updated (diff)
Actions #2

Updated by Simon Schaufelberger over 3 years ago

  • Description updated (diff)
Actions #3

Updated by Simon Schaufelberger over 3 years ago

  • Category set to Link Handling, Site Handling & Routing
Actions #4

Updated by Oliver Hader over 1 year ago

  • Sprint Focus set to On Location Sprint
Actions #5

Updated by Gerrit Code Review over 1 year ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76462

Actions #6

Updated by Gerrit Code Review over 1 year ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76462

Actions #7

Updated by Gerrit Code Review over 1 year ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76462

Actions #8

Updated by Gerrit Code Review over 1 year ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76462

Actions #9

Updated by Susanne Moog over 1 year ago

  • Related to Task #99025: Rewrite YamlFileLoaderTests to functional tests added
Actions #10

Updated by Gerrit Code Review over 1 year ago

Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76462

Actions #11

Updated by Gerrit Code Review over 1 year ago

Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76462

Actions #12

Updated by Gerrit Code Review over 1 year ago

Patch set 7 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76462

Actions #13

Updated by Susanne Moog over 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #14

Updated by Susanne Moog over 1 year ago

  • Related to Feature #95307: Allow glob imports in site configuration yaml files added
Actions #15

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF