[BUGFIX] Make category TCA changes cacheable
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Category / CategoryRegistry.php
index cf80f37..323140d 100644 (file)
@@ -221,7 +221,7 @@ class CategoryRegistry implements \TYPO3\CMS\Core\SingletonInterface {
         *
         * @return void
         */
-       public function applyTca() {
+       protected function applyTca() {
 
                $this->registerDefaultCategorizedTables();
 
@@ -236,6 +236,18 @@ class CategoryRegistry implements \TYPO3\CMS\Core\SingletonInterface {
        }
 
        /**
+        * Slot that is registered for tcaIsBeingBuilt
+        * TCA changes are applied and then cached in ExtensionManagementUtility
+        *
+        * @param array $tca
+        * @return array
+        */
+       public function addCategoryRegistryTcaChanges(array $tca) {
+               $this->applyTca();
+               return array($GLOBALS['TCA']);
+       }
+
+       /**
         * Add default categorized tables to the registry
         *
         * @return void