Skip to content
Commit fead89a8 authored by Helmut Hummel's avatar Helmut Hummel Committed by Benni Mack
Browse files

[TASK] Open up Expression Resolver API

The Symfony Expression language is able to evaluate
any value from an expression, not only booleans.
Open up TYPO3 wrapper API to reflect this, to allow
extended usage of our API wrapper.

Instead of only allowing boolean returns, the caller of
the Resolver API is now responsible for casting the result
of the expression to bool, if required.

Also allow to pass additional context specific variables
to the evaluate function, as it is not always possible
to provide those through a global API, when some context
is only available at the time of the evaluation of the expression.

Resolves: #100073
Releases: main
Change-Id: I093fb8ce37ee98f995e5ab707186917ec879d836
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78016


Reviewed-by: default avatarAlexander Schnitzler <git@alexanderschnitzler.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarAlexander Schnitzler <git@alexanderschnitzler.de>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarBenni Mack <benni@typo3.org>
parent 8e52a486
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment