[BUGFIX] Remove empty brackets when configuration type is unknown
[Packages/TYPO3.CMS.git] / typo3 / cli_dispatch.phpsh
index aecc85e..d6e10a3 100755 (executable)
  *
  * @author Kasper Skaarhoj <kasperYYYY@typo3.com>
  */
-
 define('TYPO3_MODE', 'BE');
 define('TYPO3_cliMode', TRUE);
 
-       // We use require instead of require_once here so we get a fatal error if classes/Bootstrap.php is accidentally included twice
-       // (which would indicate a clear bug).
-require('classes/Bootstrap/Cli.php');
-Typo3_Bootstrap_Cli::checkEnvironmentOrDie();
+require __DIR__ . '/sysext/core/Classes/Core/CliBootstrap.php';
+\TYPO3\CMS\Core\Core\CliBootstrap::checkEnvironmentOrDie();
 
-require('classes/Bootstrap.php');
-Typo3_Bootstrap::getInstance()
+require __DIR__ . '/sysext/core/Classes/Core/Bootstrap.php';
+\TYPO3\CMS\Core\Core\Bootstrap::getInstance()
        ->baseSetup('typo3/')
-       ->registerExtDirectComponents()
-       ->checkLocalconfExistsOrDie()
-       ->setGlobalDatabaseVariablesToEmptyString()
-       ->loadMainConfigurationFile()
-       ->defineTypo3DatabaseConstants()
-       ->initializeCachingFramework()
-       ->registerAutoloader()
-       ->checkUtf8DatabaseSettingsOrDie()
-       ->transferDeprecatedCurlSettings()
-       ->setCacheHashOptions()
-       ->enforceCorrectProxyAuthScheme()
-       ->setDefaultTimezone()
-       ->initializeL10nLocales()
-       ->configureImageProcessingOptions()
-       ->convertPageNotFoundHandlingToBoolean()
-       ->registerGlobalDebugFunctions()
-       ->registerSwiftMailer()
-       ->configureExceptionHandling()
-       ->setMemoryLimit()
-       ->defineTypo3RequestTypes()
-       ->populateTypo3LoadedExtGlobal(TRUE)
-       ->loadAdditionalConfigurationFromExtensions(TRUE)
-       ->deprecationLogForOldXclassRegistration()
-       ->deprecationLogForOldExtCacheSetting()
-       ->initializeExceptionHandling()
-       ->requireAdditionalExtensionFiles()
-       ->setFinalCachingFrameworkCacheConfiguration()
-       ->defineLoggingAndExceptionConstants()
-       ->unsetReservedGlobalVariables()
+       ->loadConfigurationAndInitialize()
+       ->loadTypo3LoadedExtAndExtLocalconf(TRUE)
+       ->applyAdditionalConfigurationSettings()
        ->initializeTypo3DbGlobal(TRUE);
-Typo3_Bootstrap_Cli::initializeCliKeyOrDie();
-Typo3_Bootstrap::getInstance()
+
+\TYPO3\CMS\Core\Core\CliBootstrap::initializeCliKeyOrDie();
+
+\TYPO3\CMS\Core\Core\Bootstrap::getInstance()
        ->loadExtensionTables(TRUE)
-               // TODO: Check if we really need the sprite manager on the command line
-       ->initializeSpriteManager(TRUE)
        ->initializeBackendUser()
        ->initializeBackendUserMounts()
        ->initializeLanguageObject();
 
        // Make sure output is not buffered, so command-line output and interaction can take place
-t3lib_div::flushOutputBuffers();
+\TYPO3\CMS\Core\Utility\GeneralUtility::flushOutputBuffers();
 
 try {
        include(TYPO3_cliInclude);
-} catch (Exception $e) {
+} catch (\Exception $e) {
        fwrite(STDERR, $e->getMessage() . LF);
        exit(99);
 }
 
-Typo3_Bootstrap::getInstance()->shutdown();
+\TYPO3\CMS\Core\Core\Bootstrap::getInstance()->shutdown();
 ?>
\ No newline at end of file