[BUGFIX] Incomplete mock raises PHP 5.4 warning
[Packages/TYPO3.CMS.git] / typo3 / init.php
index 2f26d1e..f3272ad 100644 (file)
  *
  *  This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
  * TYPO3 Backend initialization
  *
  * This script is called by every backend script.
  * The script authenticates the backend user.
- * In addition this script also initializes the database and other stuff by including the script localconf.php
+ * In addition this script also initializes the database and other depending on LocalConfiguration.php
  *
  * IMPORTANT:
  * This script exits if no user is logged in!
  * please refer to the document "Inside TYPO3"
  *
  * @author Kasper Skårhøj <kasperYYYY@typo3.com>
- * @package TYPO3
- * @subpackage core
  */
 define('TYPO3_MODE', 'BE');
 
-       // We use require instead of require_once here so we get a fatal error if
-       // Bootstrap.php is accidentally included twice (which would indicate a clear bug).
 require 'sysext/core/Classes/Core/Bootstrap.php';
 
 \TYPO3\CMS\Core\Core\Bootstrap::getInstance()
-       ->startOutputBuffering()
        ->baseSetup('typo3/')
-       ->registerExtDirectComponents()
-       ->populateLocalConfiguration()
-       ->initializeCachingFramework()
-       ->registerAutoloader()
-       ->checkUtf8DatabaseSettingsOrDie()
-       ->transferDeprecatedCurlSettings()
-       ->setCacheHashOptions()
-       ->enforceCorrectProxyAuthScheme()
-       ->setDefaultTimezone()
-       ->initializeL10nLocales()
-       ->configureImageProcessingOptions()
-       ->convertPageNotFoundHandlingToBoolean()
-       ->registerGlobalDebugFunctions()
-       ->registerSwiftMailer()
-       ->configureExceptionHandling()
-       ->setMemoryLimit()
-       ->defineTypo3RequestTypes()
-       ->populateTypo3LoadedExtGlobal(TRUE)
-       ->loadAdditionalConfigurationFromExtensions(TRUE)
-       ->deprecationLogForOldExtCacheSetting()
-       ->initializeExceptionHandling()
-       ->requireAdditionalExtensionFiles()
-       ->setFinalCachingFrameworkCacheConfiguration()
-       ->defineLoggingAndExceptionConstants()
-       ->unsetReservedGlobalVariables()
+       ->startOutputBuffering()
+       ->loadConfigurationAndInitialize()
+       ->loadTypo3LoadedExtAndExtLocalconf(TRUE)
+       ->applyAdditionalConfigurationSettings()
        ->initializeTypo3DbGlobal(FALSE)
        ->checkLockedBackendAndRedirectOrDie()
        ->checkBackendIpOrDie()