[TASK] Deprecate alias cObjects COBJ_ARRAY and CASEFUNC 79/37379/2
authorBenjamin Mack <benni@typo3.org>
Sat, 28 Feb 2015 21:02:11 +0000 (22:02 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Sat, 28 Feb 2015 21:07:04 +0000 (22:07 +0100)
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: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
typo3/sysext/compatibility6/ext_localconf.php
typo3/sysext/core/Documentation/Changelog/master/Deprecation-65422-cObjectAliasNames.rst [new file with mode: 0644]
typo3/sysext/frontend/ext_localconf.php

index 68a5898..42b147c 100644 (file)
@@ -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;
diff --git a/typo3/sysext/core/Documentation/Changelog/master/Deprecation-65422-cObjectAliasNames.rst b/typo3/sysext/core/Documentation/Changelog/master/Deprecation-65422-cObjectAliasNames.rst
new file mode 100644 (file)
index 0000000..bc409d3
--- /dev/null
@@ -0,0 +1,28 @@
+============================================================
+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.
index 6146391..3495d09 100644 (file)
@@ -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,