Issue Bug Closed

#100205@import lost the flexibility from Symfony Finder

Benjamin Serfhos 03/17/23, 14:28 updated 04/05/23, 09:53

Description

https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/Configuration/TypoScriptSyntax/Syntax/Includes.html#typoscript-syntax-includes

The documentation mentioned `Internals: Under the hood, Symfony Finder is use to find the file and provides the “globbing” feature (* syntax).`

This implementation is lost since the deprecation of TyposcriptParser (https://review.typo3.org/c/Packages/TYPO3.CMS/+/76565). It simply uses the scandir() function in vendor/typo3/cms-core/Classes/TypoScript/IncludeTree/TreeFromLineStreamBuilder.php

My usecase was to dynamically include setup/constants for scoped extenion overrides;

In my constants.typoscript i have this;

@import ‘EXT:my_package/Configuration/TypoScript/Extensions/*/constants.typoscript’

And my setup.typoscript i use a similar:

@import ‘EXT:my_package/Configuration/TypoScript/Extensions/*/setup.typoscript’

This functionality is not working anymore in the new TreeFromLineStreamBuilder. As the Symfony Finder package is still widely used, I would suggest to keep using this package too.

Reviews 1