Skip to content
Snippets Groups Projects
Commit a98e3918 authored by Benjamin Mack's avatar Benjamin Mack Committed by Helmut Hummel
Browse files

[TASK] Deprecate alias cObjects COBJ_ARRAY and CASEFUNC

The alias cObjects COBJ_ARRAY for COA and CASEFUNC
for CASE are moved to compatibility6.

Resolves: #65422
Change-Id: I419997c3b70d0dfd9e23d9bc67bf909295e4faff
Reviewed-on: http://review.typo3.org/37379


Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarHelmut Hummel <helmut.hummel@typo3.org>
Tested-by: default avatarHelmut Hummel <helmut.hummel@typo3.org>
parent 47e86ed6
No related merge requests found
......@@ -12,6 +12,9 @@ if (TYPO3_MODE === 'FE') {
$GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects']['HRULER'] = \TYPO3\CMS\Compatibility6\ContentObject\HorizontalRulerContentObject::class;
$GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects']['FORM'] = \TYPO3\CMS\Compatibility6\ContentObject\FormContentObject::class;
$GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects']['SEARCHRESULT'] = \TYPO3\CMS\Compatibility6\ContentObject\SearchResultContentObject::class;
// deprecated alias names for cObjects in use
$GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects']['COBJ_ARRAY'] = \TYPO3\CMS\Frontend\ContentObject\ContentObjectArrayContentObject::class;
$GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects']['CASEFUNC'] = \TYPO3\CMS\Frontend\ContentObject\CaseContentObject::class;
// Register a hook for data submission
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkDataSubmission']['mailform'] = \TYPO3\CMS\Compatibility6\Controller\FormDataSubmissionController::class;
......
============================================================
Deprecation: #65422 - Alias cObjects COBJ_ARRAY and CASEFUNC
============================================================
Description
===========
The cObject aliases COBJ_ARRAY (alias for COA) and CASEFUNC (alias for CASE) are moved to the compatibility6 extension.
The use of these aliases are marked for deprecation.
Impact
======
Any usage of TypoScript using COBJ_ARRAY and CASEFUNC will not work anymore unless the compatibility6 extension is
installed.
Affected installations
======================
All installations with TypoScript in COBJ_ARRAY and CASEFUNC.
Migration
=========
Use COA instead of COBJ_ARRAY and CASE instead of CASEFUNC in all TypoScript code.
......@@ -31,7 +31,6 @@ if (TYPO3_MODE === 'FE') {
$GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects'] = array_merge($GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects'], array(
'TEXT' => \TYPO3\CMS\Frontend\ContentObject\TextContentObject::class,
'CASE' => \TYPO3\CMS\Frontend\ContentObject\CaseContentObject::class,
'COBJ_ARRAY' => \TYPO3\CMS\Frontend\ContentObject\ContentObjectArrayContentObject::class,
'COA' => \TYPO3\CMS\Frontend\ContentObject\ContentObjectArrayContentObject::class,
'COA_INT' => \TYPO3\CMS\Frontend\ContentObject\ContentObjectArrayInternalContentObject::class,
'USER' => \TYPO3\CMS\Frontend\ContentObject\UserContentObject::class,
......@@ -43,7 +42,6 @@ if (TYPO3_MODE === 'FE') {
'CONTENT' => \TYPO3\CMS\Frontend\ContentObject\ContentContentObject::class,
'RECORDS' => \TYPO3\CMS\Frontend\ContentObject\RecordsContentObject::class,
'HMENU' => \TYPO3\CMS\Frontend\ContentObject\HierarchicalMenuContentObject::class,
'CASEFUNC' => \TYPO3\CMS\Frontend\ContentObject\CaseContentObject::class,
'LOAD_REGISTER' => \TYPO3\CMS\Frontend\ContentObject\LoadRegisterContentObject::class,
'RESTORE_REGISTER' => \TYPO3\CMS\Frontend\ContentObject\RestoreRegisterContentObject::class,
'TEMPLATE' => \TYPO3\CMS\Frontend\ContentObject\TemplateContentObject::class,
......
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