[BUGFIX] provide some expression matcher variables #4320
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this pr does
makes (more) TS Condition working when not in FE-Mode
currently: for most conditions the
TYPO3.CMS.Core.TypoScript.IncludeTree.Visitor.IncludeTreeConditionMatcherVisitor
logs an
Expression could not be parsed.
error, e.g.we should pass some important variables to the
initializeExpressionMatcherWithVariables()
https://github.com/TYPO3/typo3/blob/65aa70e0e8c0bd64566d8726794c71525cbc4152/typo3/sysext/core/Classes/TypoScript/IncludeTree/Visitor/IncludeTreeConditionMatcherVisitor.php#L70
How to test
change Index Configuration
my-site.ddev.site is not used as host
change index Configuration
gives an error log