[TASK] Remove loadTCA calls
authorChristian Kuhn <lolli@schwarzbu.ch>
Tue, 5 Feb 2013 18:38:13 +0000 (19:38 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 5 Feb 2013 19:06:14 +0000 (20:06 +0100)
Change-Id: I3de34fcaee7f5a3e973ccf203973d15c9a0e467d
Related: #45107
Releases: 6.1
Reviewed-on: https://review.typo3.org/18027
Reviewed-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapFactory.php
typo3/sysext/extbase/ext_tables.php

index 0859aab..df03ee3 100644 (file)
@@ -230,7 +230,6 @@ class DataMapFactory implements \TYPO3\CMS\Core\SingletonInterface {
         * @return array The TCA columns definition
         */
        protected function getControlSection($tableName) {
-               $this->includeTca($tableName);
                return is_array($GLOBALS['TCA'][$tableName]['ctrl']) ? $GLOBALS['TCA'][$tableName]['ctrl'] : NULL;
        }
 
@@ -241,24 +240,10 @@ class DataMapFactory implements \TYPO3\CMS\Core\SingletonInterface {
         * @return array The TCA columns definition
         */
        protected function getColumnsDefinition($tableName) {
-               $this->includeTca($tableName);
                return is_array($GLOBALS['TCA'][$tableName]['columns']) ? $GLOBALS['TCA'][$tableName]['columns'] : array();
        }
 
        /**
-        * Includes the TCA for the given table
-        *
-        * @param string $tableName An optional table name to fetch the columns definition from
-        * @return void
-        */
-       protected function includeTca($tableName) {
-               if (TYPO3_MODE === 'FE') {
-                       $GLOBALS['TSFE']->includeTCA();
-               }
-               \TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA($tableName);
-       }
-
-       /**
         * @param DataMap $dataMap
         * @param $tableName
         * @return DataMap
index b7c1efb..f0e93d8 100644 (file)
@@ -7,7 +7,6 @@ if (TYPO3_MODE == 'BE') {
        $TBE_MODULES['_dispatcher'][] = 'TYPO3\\CMS\\Extbase\\Core\\BootstrapInterface';
 }
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['extbase'][] = 'TYPO3\\CMS\\Extbase\\Utility\\ExtbaseRequirementsCheckUtility';
-\TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA('fe_users');
 if (!isset($TCA['fe_users']['ctrl']['type'])) {
        $tempColumns = array(
                'tx_extbase_type' => array(
@@ -30,7 +29,6 @@ if (!isset($TCA['fe_users']['ctrl']['type'])) {
        $TCA['fe_users']['ctrl']['type'] = 'tx_extbase_type';
 }
 $TCA['fe_users']['types']['Tx_Extbase_Domain_Model_FrontendUser'] = $TCA['fe_users']['types']['0'];
-\TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA('fe_groups');
 if (!isset($TCA['fe_groups']['ctrl']['type'])) {
        $tempColumns = array(
                'tx_extbase_type' => array(