Deprecation: #100047 - Deprecated ConditionMatcher classes

See forge#100047

Description

The following classes have been marked as deprecated in TYPO3 v12 and will be removed with v13:

  • \TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\ConditionMatcherInterface

  • \TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcher

  • \TYPO3\CMS\Backend\Configuration\TypoScript\ConditionMatching\ConditionMatcher

  • \TYPO3\CMS\Frontend\Configuration\TypoScript\ConditionMatching\ConditionMatcher

Impact

The TYPO3 Core only uses these classes within the old TypoScript parser classes, which have been deprecated as well. Using the classes will trigger a deprecation level log entry.

Affected installations

There was probably little need to implement new variants of the above classes as the underlying ExpressionLanguage construct has its own API to add new variables and functions for this TypoScript condition related to Symfony expression language usage.

Migration

No direct migration possible. These classes have been merged into the new TypoScript parser approach, specifically for class \TYPO3\CMS\Core\TypoScript\IncludeTree\Visitor\IncludeTreeConditionMatcherVisitor.

Adding TypoScript related expression language variables and functions should be done using \TYPO3\CMS\Core\ExpressionLanguage\ProviderInterface.