[FEATURE] Add symfony expression language for TypoScript conditions 87/57787/29
authorFrank Naegler <frank.naegler@typo3.org>
Thu, 2 Aug 2018 22:10:03 +0000 (00:10 +0200)
committerBenni Mack <benni@typo3.org>
Thu, 30 Aug 2018 21:43:20 +0000 (23:43 +0200)
commit76b2b302ca043ec10d9748fdfa02cdc817f210f1
tree1da7904969a319dc0cfe4fb9bf045e4cd35419f7
parent4f81dc38b7211ca717043f8165914bb2086475a5
[FEATURE] Add symfony expression language for TypoScript conditions

This patch implements the symfony expression language for TypoScript conditions
in frontend and backend and is a preparation for the old conditions being deprecated.
The existing conditions are available as variables and/or functions.
This enables the full power of symfony expression language for TypoScript conditions.

Resolves: #85829
Releases: master
Change-Id: I7bcb7940ae1c36500eb7dc40fe84c7dd48d674a6
Reviewed-on: https://review.typo3.org/57787
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
17 files changed:
typo3/sysext/backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php
typo3/sysext/backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php
typo3/sysext/core/Classes/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcher.php
typo3/sysext/core/Classes/Context/UserAspect.php
typo3/sysext/core/Classes/ExpressionLanguage/DefaultFunctionsProvider.php [new file with mode: 0644]
typo3/sysext/core/Classes/ExpressionLanguage/RequestWrapper.php [new file with mode: 0644]
typo3/sysext/core/Classes/ExpressionLanguage/Resolver.php
typo3/sysext/core/Classes/ExpressionLanguage/TypoScriptConditionFunctionsProvider.php [new file with mode: 0644]
typo3/sysext/core/Classes/ExpressionLanguage/TypoScriptConditionProvider.php [new file with mode: 0644]
typo3/sysext/core/Classes/ExpressionLanguage/TypoScriptFrontendConditionFunctionsProvider.php [new file with mode: 0644]
typo3/sysext/core/Classes/Utility/StringUtility.php
typo3/sysext/core/Documentation/Changelog/master/Feature-85829-ImplementSymfonyExpressionLanguageForTypoScriptConditions.rst [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcherTest.php
typo3/sysext/core/Tests/Unit/TypoScript/Parser/TypoScriptParserTest.php
typo3/sysext/core/Tests/Unit/Utility/StringUtilityTest.php
typo3/sysext/frontend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php
typo3/sysext/frontend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php