[CLEANUP] Remove initialization of Module Menu 42/27242/2
authorBenjamin Mack <benni@typo3.org>
Sat, 1 Feb 2014 21:36:17 +0000 (22:36 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sat, 1 Feb 2014 22:15:49 +0000 (23:15 +0100)
The module menu and its view are instantiated
on every backend call, BE AJAX call etc although
it is only needed in the backend.php file where
it instantiates itself automatically anyways.

The patch removes the call in init.php and
in the TYPO3 Bootstrap as it is not needed
anymore.

Releases: 6.2
Resolves: #55565
Change-Id: I67b6fb54380485d35c070867abf67e3ed416f004
Reviewed-on: https://review.typo3.org/27242
Reviewed-by: Marcin Sągol
Tested-by: Marcin Sągol
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/init.php
typo3/sysext/core/Classes/Core/Bootstrap.php

index 0840386..a9d74b5 100644 (file)
@@ -72,7 +72,6 @@ require __DIR__ . '/sysext/core/Classes/Core/Bootstrap.php';
        ->initializeBackendAuthentication()
        ->initializeBackendUserMounts()
        ->initializeLanguageObject()
-       ->initializeModuleMenuObject()
        ->initializeBackendTemplate()
        ->endOutputBufferingAndCleanPreviousOutput()
        ->initializeOutputCompression();
index 182487a..ac3a59a 100644 (file)
@@ -1077,19 +1077,6 @@ class Bootstrap {
        }
 
        /**
-        * Initialize module menu object
-        *
-        * @return Bootstrap
-        * @internal This is not a public API method, do not use in own extensions
-        */
-       public function initializeModuleMenuObject() {
-               /** @var $moduleMenuUtility \TYPO3\CMS\Backend\Module\ModuleController */
-               $moduleMenuUtility = Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Module\\ModuleController');
-               $moduleMenuUtility->createModuleMenu();
-               return $this;
-       }
-
-       /**
         * Things that should be performed to shut down the framework.
         * This method is called in all important scripts for a clean
         * shut down of the system.