[TASK] Streamline ext_tables/ext_localconf of system extensions 04/48004/5
authorBenni Mack <benni@typo3.org>
Tue, 3 May 2016 20:23:49 +0000 (22:23 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Wed, 27 Jul 2016 17:09:46 +0000 (19:09 +0200)
Avoid $_EXTKEY, $_EXTCONF and unset variables that are used.

This is done so devs who look into the core extensions to see
how things are registered see that it's always done the same way.

Resolves: #77037
Releases: master
Change-Id: I69a99bbb9f2e57fd6215506e919704b61f376c9c
Reviewed-on: https://review.typo3.org/48004
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
26 files changed:
typo3/sysext/belog/ext_localconf.php
typo3/sysext/compatibility7/ext_tables.php
typo3/sysext/core/ext_tables.php
typo3/sysext/css_styled_content/Configuration/TCA/Overrides/sys_template.php [new file with mode: 0644]
typo3/sysext/css_styled_content/Configuration/TCA/Overrides/tt_content.php
typo3/sysext/css_styled_content/ext_localconf.php
typo3/sysext/documentation/ext_localconf.php
typo3/sysext/extensionmanager/ext_localconf.php
typo3/sysext/filemetadata/ext_localconf.php
typo3/sysext/fluid/Configuration/TCA/Overrides/sys_template.php [new file with mode: 0644]
typo3/sysext/fluid/ext_tables.php [deleted file]
typo3/sysext/fluid_styled_content/ext_localconf.php
typo3/sysext/form/Configuration/TCA/Overrides/sys_template.php [new file with mode: 0644]
typo3/sysext/form/ext_localconf.php
typo3/sysext/form/ext_tables.php [deleted file]
typo3/sysext/frontend/ext_localconf.php
typo3/sysext/impexp/ext_localconf.php
typo3/sysext/impexp/ext_tables.php
typo3/sysext/indexed_search/Configuration/TCA/Overrides/sys_template.php [new file with mode: 0644]
typo3/sysext/indexed_search/ext_localconf.php
typo3/sysext/indexed_search/ext_tables.php
typo3/sysext/install/ext_localconf.php
typo3/sysext/reports/ext_tables.php
typo3/sysext/rtehtmlarea/ext_tables.php
typo3/sysext/sys_action/ext_localconf.php
typo3/sysext/sys_action/ext_tables.php

index e190c1f..24696b9 100644 (file)
@@ -2,11 +2,11 @@
 defined('TYPO3_MODE') or die();
 
 if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
-    $signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
-    $signalSlotDispatcher->connect(
-        \TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::class,
-        'loadMessages',
-        \TYPO3\CMS\Belog\Controller\SystemInformationController::class,
-        'appendMessage'
-    );
+    \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class)
+        ->connect(
+            \TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::class,
+            'loadMessages',
+            \TYPO3\CMS\Belog\Controller\SystemInformationController::class,
+            'appendMessage'
+        );
 }
index e1e88d3..dbabd35 100644 (file)
@@ -4,6 +4,6 @@ defined('TYPO3_MODE') or die();
 if (TYPO3_MODE === 'BE') {
     if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('indexed_search')) {
         $GLOBALS['TBE_MODULES_EXT']['xMOD_db_new_content_el']['addElClasses']['tx_indexed_search_pi_wizicon'] =
-            \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Resources/PHP/class.tx_indexed_search_pi_wizicon.php';
+            \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('compatibility7') . 'Resources/PHP/class.tx_indexed_search_pi_wizicon.php';
     }
 }
index f1a9dc0..c44866f 100644 (file)
@@ -33,12 +33,14 @@ $GLOBALS['PAGES_TYPES'] = array(
     ),
     'default' => array(
         'type' => 'web',
-        'allowedTables' => 'pages',
+        'allowedTables' => 'pages,sys_category,sys_file_reference,sys_file_collection',
         'onlyAllowedTables' => '0'
     ),
 );
 
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('sys_category,sys_file_reference,sys_file_collection');
+/** @var \TYPO3\CMS\Core\Resource\Driver\DriverRegistry $registry */
+\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Resource\Driver\DriverRegistry::class)
+    ->addDriversToTCA();
 
 /**
  * $TBE_MODULES contains the structure of the backend modules as they are
diff --git a/typo3/sysext/css_styled_content/Configuration/TCA/Overrides/sys_template.php b/typo3/sysext/css_styled_content/Configuration/TCA/Overrides/sys_template.php
new file mode 100644 (file)
index 0000000..c69c945
--- /dev/null
@@ -0,0 +1,5 @@
+<?php
+defined('TYPO3_MODE') or die();
+
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('css_styled_content', 'static/', 'CSS Styled Content');
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('css_styled_content', 'Configuration/TypoScript/v7/', 'CSS Styled Content TYPO3 v7');
index fe42a5b..fe9f121 100644 (file)
@@ -681,7 +681,4 @@ $GLOBALS['TCA']['tt_content']['columns']['section_frame']['config']['items'][9]
     'LLL:EXT:css_styled_content/Resources/Private/Language/locallang_db.xlf:tt_content.tx_cssstyledcontent_section_frame.I.9', '66'
 );
 
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('css_styled_content', 'static/', 'CSS Styled Content');
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('css_styled_content', 'Configuration/TypoScript/v7/', 'CSS Styled Content TYPO3 v7');
-
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::makeCategorizable('css_styled_content', 'tt_content', 'categories', array(), true);
index 79a5863..e95e795 100644 (file)
@@ -32,12 +32,12 @@ if (TYPO3_MODE === 'BE') {
             \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/PageTSconfig/NewContentElementWizard.ts">');
         }
 
-        $dispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
-        $dispatcher->connect(
-            \TYPO3\CMS\Extensionmanager\Controller\ConfigurationController::class,
-            'afterExtensionConfigurationWrite',
-            \TYPO3\CMS\CssStyledContent\Hooks\TcaCacheClearing::class,
-            'clearTcaCache'
-        );
+        \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class)
+            ->connect(
+                \TYPO3\CMS\Extensionmanager\Controller\ConfigurationController::class,
+                'afterExtensionConfigurationWrite',
+                \TYPO3\CMS\CssStyledContent\Hooks\TcaCacheClearing::class,
+                'clearTcaCache'
+            );
     });
 }
index 6d225b3..6ef8e4d 100644 (file)
@@ -2,10 +2,10 @@
 defined('TYPO3_MODE') or die();
 
 // Open extension manual from within Extension Manager
-$signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
-$signalSlotDispatcher->connect(
-    \TYPO3\CMS\Extensionmanager\ViewHelpers\ProcessAvailableActionsViewHelper::class,
-    'processActions',
-    \TYPO3\CMS\Documentation\Slots\ExtensionManager::class,
-    'processActions'
-);
+\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class)
+    ->connect(
+        \TYPO3\CMS\Extensionmanager\ViewHelpers\ProcessAvailableActionsViewHelper::class,
+        'processActions',
+        \TYPO3\CMS\Documentation\Slots\ExtensionManager::class,
+        'processActions'
+    );
index 8ab4e25..010e6f3 100644 (file)
@@ -2,12 +2,12 @@
 defined('TYPO3_MODE') or die();
 
 // Register extension list update task
-$_EXTCONF = unserialize($_EXTCONF, ['allowed_classes' => false]);
-if (empty($_EXTCONF['offlineMode'])) {
+$extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['extensionmanager'], ['allowed_classes' => false]);
+if (empty($extConf['offlineMode'])) {
     $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\TYPO3\CMS\Extensionmanager\Task\UpdateExtensionListTask::class] = array(
-        'extension' => $_EXTKEY,
-        'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xlf:task.updateExtensionListTask.name',
-        'description' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xlf:task.updateExtensionListTask.description',
+        'extension' => 'extensionmanager',
+        'title' => 'LLL:EXT:extensionmanager/Resources/Private/Language/locallang.xlf:task.updateExtensionListTask.name',
+        'description' => 'LLL:EXT:extensionmanager/Resources/Private/Language/locallang.xlf:task.updateExtensionListTask.description',
         'additionalFields' => '',
     );
 }
@@ -34,5 +34,8 @@ if (TYPO3_MODE === 'BE') {
             \TYPO3\CMS\Core\Category\CategoryRegistry::class,
             'addExtensionCategoryDatabaseSchemaToTablesDefinition'
         );
+        unset($signalSlotDispatcher);
     }
 }
+
+unset($extConf);
index 00c26dc..94542e1 100644 (file)
@@ -18,3 +18,4 @@ $iconRegistry->registerIcon(
     \TYPO3\CMS\Core\Imaging\IconProvider\FontawesomeIconProvider::class,
     ['name' => 'eye']
 );
+unset($iconRegistry);
diff --git a/typo3/sysext/fluid/Configuration/TCA/Overrides/sys_template.php b/typo3/sysext/fluid/Configuration/TCA/Overrides/sys_template.php
new file mode 100644 (file)
index 0000000..f7f14bc
--- /dev/null
@@ -0,0 +1,4 @@
+<?php
+defined('TYPO3_MODE') or die();
+
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('fluid', 'Configuration/TypoScript', 'Fluid: (Optional) default ajax configuration');
diff --git a/typo3/sysext/fluid/ext_tables.php b/typo3/sysext/fluid/ext_tables.php
deleted file mode 100644 (file)
index ae4ea4f..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-defined('TYPO3_MODE') or die();
-
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Fluid: (Optional) default ajax configuration');
index 7cca6ae..8659236 100644 (file)
@@ -17,12 +17,12 @@ if (TYPO3_MODE === 'BE') {
             \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:fluid_styled_content/Configuration/PageTSconfig/NewContentElementWizard.ts">');
         }
 
-        $dispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
-        $dispatcher->connect(
-            \TYPO3\CMS\Extensionmanager\Controller\ConfigurationController::class,
-            'afterExtensionConfigurationWrite',
-            \TYPO3\CMS\FluidStyledContent\Hooks\TcaCacheClearing::class,
-            'clearTcaCache'
-        );
+        \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class)
+            ->connect(
+                \TYPO3\CMS\Extensionmanager\Controller\ConfigurationController::class,
+                'afterExtensionConfigurationWrite',
+                \TYPO3\CMS\FluidStyledContent\Hooks\TcaCacheClearing::class,
+                'clearTcaCache'
+            );
     });
 }
diff --git a/typo3/sysext/form/Configuration/TCA/Overrides/sys_template.php b/typo3/sysext/form/Configuration/TCA/Overrides/sys_template.php
new file mode 100644 (file)
index 0000000..6d53f03
--- /dev/null
@@ -0,0 +1,5 @@
+<?php
+defined('TYPO3_MODE') or die();
+
+// Register static TypoScript resource
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('form', 'Configuration/TypoScript/', 'Default TS');
index 1f9c613..94cfd44 100644 (file)
@@ -35,13 +35,13 @@ if (TYPO3_MODE === 'BE') {
     array('Frontend' => 'show, confirmation, dispatchConfirmationButtonClick, process, afterProcess')
 );
 
-$signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
-$signalSlotDispatcher->connect(
-    \TYPO3\CMS\Form\Domain\Builder\FormBuilder::class,
-    'txFormHandleIncomingValues',
-    \TYPO3\CMS\Form\Hooks\HandleIncomingFormValues::class,
-    'handleIncomingFormValues'
-);
+\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class)
+    ->connect(
+        \TYPO3\CMS\Form\Domain\Builder\FormBuilder::class,
+        'txFormHandleIncomingValues',
+        \TYPO3\CMS\Form\Hooks\HandleIncomingFormValues::class,
+        'handleIncomingFormValues'
+    );
 
 // Register the extbase plugin as shorthand for typoscript 10 = FORM
 $GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects']['FORM'] = \TYPO3\CMS\Form\ContentObject\FormContentObject::class;
diff --git a/typo3/sysext/form/ext_tables.php b/typo3/sysext/form/ext_tables.php
deleted file mode 100644 (file)
index 6d53f03..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-defined('TYPO3_MODE') or die();
-
-// Register static TypoScript resource
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('form', 'Configuration/TypoScript/', 'Default TS');
index e95a09a..c85341d 100644 (file)
@@ -61,9 +61,9 @@ $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['urlProcessing']['urlHandlers']['front
     'handler' => \TYPO3\CMS\Frontend\Page\ExternalPageUrlHandler::class,
 ];
 
-$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
-$iconRegistry->registerIcon(
-    'wizard-backendlayout',
-    \TYPO3\CMS\Core\Imaging\IconProvider\FontawesomeIconProvider::class,
-    ['name' => 'table']
-);
+\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class)
+    ->registerIcon(
+        'wizard-backendlayout',
+        \TYPO3\CMS\Core\Imaging\IconProvider\FontawesomeIconProvider::class,
+        ['name' => 'table']
+    );
index 70722e7..aeca3b7 100644 (file)
@@ -1,4 +1,4 @@
 <?php
 defined('TYPO3_MODE') or die();
 
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/backend.php']['constructPostProcess'][] = 'TYPO3\\CMS\\Impexp\\Hook\\BackendControllerHook->addJavaScript';
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/backend.php']['constructPostProcess'][] = \TYPO3\CMS\Impexp\Hook\BackendControllerHook::class . '->addJavaScript';
index a9f87ce..73b2506 100644 (file)
@@ -5,7 +5,7 @@ if (TYPO3_MODE === 'BE') {
     $GLOBALS['TBE_MODULES_EXT']['xMOD_alt_clickmenu']['extendCMclasses'][] = array(
         'name' => \TYPO3\CMS\Impexp\Clickmenu::class
     );
-    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['taskcenter']['impexp']['TYPO3\\CMS\\Impexp\\Task\\ImportExportTask'] = array(
+    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['taskcenter']['impexp'][\TYPO3\CMS\Impexp\Task\ImportExportTask::class] = array(
         'title' => 'LLL:EXT:impexp/Resources/Private/Language/locallang_csh.xlf:.alttitle',
         'description' => 'LLL:EXT:impexp/Resources/Private/Language/locallang_csh.xlf:.description',
         'icon' => 'EXT:impexp/Resources/Public/Images/export.gif'
@@ -47,6 +47,7 @@ if (TYPO3_MODE === 'BE') {
                        }
                }
        ');
+    unset($importExportActions);
     // Hook into page tree context menu to remove "import" items again if user is not admin or module
     // is not enabled for this user / group
     $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['backend']['contextMenu']['disableItems'][]
diff --git a/typo3/sysext/indexed_search/Configuration/TCA/Overrides/sys_template.php b/typo3/sysext/indexed_search/Configuration/TCA/Overrides/sys_template.php
new file mode 100644 (file)
index 0000000..6dbb076
--- /dev/null
@@ -0,0 +1,4 @@
+<?php
+defined('TYPO3_MODE') or die();
+
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('indexed_search', 'Configuration/TypoScript', 'Indexed Search (Extbase & Fluid based)');
index 321ce16..13b310e 100644 (file)
@@ -44,9 +44,11 @@ $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['external_parsers'] = a
     'tif'  => \TYPO3\CMS\IndexedSearch\FileContentParser::class
 );
 $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['use_tables'] = 'index_phash,index_fulltext,index_rel,index_words,index_section,index_grlist,index_stat_search,index_stat_word,index_debug,index_config';
+
 // unserializing the configuration so we can use it here:
-$_EXTCONF = unserialize($_EXTCONF, ['allowed_classes' => false]);
+$extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['indexed_search'], ['allowed_classes' => false]);
 // Use the advanced doubleMetaphone parser instead of the internal one (usage of metaphone parsers is generally disabled by default)
-if (isset($_EXTCONF['enableMetaphoneSearch']) && (int)$_EXTCONF['enableMetaphoneSearch'] == 2) {
+if (isset($extConf['enableMetaphoneSearch']) && (int)$extConf['enableMetaphoneSearch'] == 2) {
     $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['metaphone'] = \TYPO3\CMS\IndexedSearch\Utility\DoubleMetaPhoneUtility::class;
 }
+unset($extConf);
index 05f89f2..c4ba1b7 100644 (file)
@@ -1,8 +1,6 @@
 <?php
 defined('TYPO3_MODE') or die();
 
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Indexed Search (Extbase & Fluid based)');
-
 if (TYPO3_MODE === 'BE') {
     \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
         'TYPO3.CMS.IndexedSearch',
index fb6c325..5773186 100644 (file)
@@ -31,6 +31,7 @@ $signalSlotDispatcher->connect(
     \TYPO3\CMS\Core\Category\CategoryRegistry::class,
     'addCategoryDatabaseSchemaToTablesDefinition'
 );
+unset($signalSlotDispatcher);
 
 // Do not delete this wizard. This makes sure new installations get the TER repository set in the database.
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][\TYPO3\CMS\Install\Updates\ExtensionManagerTables::class]
index c9dc16b..09309ba 100644 (file)
@@ -15,16 +15,18 @@ if (TYPO3_MODE === 'BE') {
             'labels' => 'LLL:EXT:reports/Resources/Private/Language/locallang.xlf'
         )
     );
-    $statusReport = array(
-        'title' => 'LLL:EXT:reports/Resources/Private/Language/locallang_reports.xlf:status_report_title',
-        'icon' => 'EXT:reports/Resources/Public/Icons/module-reports.svg',
-        'description' => 'LLL:EXT:reports/Resources/Private/Language/locallang_reports.xlf:status_report_description',
-        'report' => \TYPO3\CMS\Reports\Report\Status\Status::class
-    );
     if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status'])) {
         $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status'] = array();
     }
-    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status'] = array_merge($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status'], $statusReport);
+    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status'] = array_merge(
+        $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status'],
+        array(
+            'title' => 'LLL:EXT:reports/Resources/Private/Language/locallang_reports.xlf:status_report_title',
+            'icon' => 'EXT:reports/Resources/Public/Icons/module-reports.svg',
+            'description' => 'LLL:EXT:reports/Resources/Private/Language/locallang_reports.xlf:status_report_description',
+            'report' => \TYPO3\CMS\Reports\Report\Status\Status::class
+        )
+    );
     $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['typo3'][] = \TYPO3\CMS\Reports\Report\Status\Typo3Status::class;
     $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['system'][] = \TYPO3\CMS\Reports\Report\Status\SystemStatus::class;
     $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['security'][] = \TYPO3\CMS\Reports\Report\Status\SecurityStatus::class;
index db8baaf..07d0b52 100644 (file)
@@ -4,7 +4,7 @@ defined('TYPO3_MODE') or die();
 // Add static template for Click-enlarge rendering
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('rtehtmlarea', 'static/clickenlarge/', 'Clickenlarge Rendering');
 
-// Add Abbreviation records (as of 7.0 not working in Configuration/TCA/Overrides)
+// Add Abbreviation records
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_rtehtmlarea_acronym');
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_rtehtmlarea_acronym', 'EXT:rtehtmlarea/Resources/Private/Language/locallang_csh_abbreviation.xlf');
 
index 75cf44f..c714e48 100644 (file)
@@ -2,5 +2,5 @@
 defined('TYPO3_MODE') or die();
 
 if (TYPO3_MODE === 'BE') {
-    $GLOBALS['TYPO3_CONF_VARS']['BE']['toolbarItems'][1435433113] = 'TYPO3\\CMS\\SysAction\\Backend\\ToolbarItems\\ActionToolbarItem';
+    $GLOBALS['TYPO3_CONF_VARS']['BE']['toolbarItems'][1435433113] = \TYPO3\CMS\SysAction\Backend\ToolbarItems\ActionToolbarItem::class;
 }
index 2ee2579..26c19f8 100644 (file)
@@ -3,7 +3,7 @@ defined('TYPO3_MODE') or die();
 
 if (TYPO3_MODE === 'BE') {
     \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_action', 'EXT:sys_action/Resources/Private/Language/locallang_csh_sysaction.xlf');
-    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['taskcenter']['sys_action']['TYPO3\\CMS\\SysAction\\ActionTask'] = array(
+    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['taskcenter']['sys_action'][\TYPO3\CMS\SysAction\ActionTask::class] = array(
         'title' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action',
         'description' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_csh_sysaction.xlf:.description',
         'icon' => 'EXT:sys_action/Resources/Public/Images/x-sys_action.png'