[BUGFIX] Namespaces: Bring back OpenID library
[Packages/TYPO3.CMS.git] / typo3 / cli_dispatch.phpsh
index 657b270..50a7c4f 100755 (executable)
  * @author Kasper Skaarhoj <kasperYYYY@typo3.com>
  */
 
-define('TYPO3_MODE','BE');
+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/cli/Classes/CliBootstrap.php';
+\TYPO3\CMS\Cli\CliBootstrap::checkEnvironmentOrDie();
 
-require('classes/Bootstrap.php');
-Typo3_Bootstrap::getInstance()
-       ->checkEnvironmentOrDie()
-       ->defineBaseConstants()
-       ->defineAndCheckPaths('typo3/')
-       ->requireBaseClasses()
-       ->setUpEnvironment()
-       ->loadDefaultTypo3ConfVars()
+require __DIR__ . '/sysext/core/Classes/Core/SystemEnvironmentBuilder.php';
+require __DIR__ . '/sysext/core/Classes/Core/Bootstrap.php';
+\TYPO3\CMS\Core\Core\Bootstrap::getInstance()
+       ->baseSetup('typo3/')
        ->registerExtDirectComponents()
-       ->initializeGlobalVariables()
-       ->checkLocalconfExistsOrDie()
-       ->setGlobalDatabaseVariablesToEmptyString()
-       ->loadMainConfigurationFile()
-       ->defineTypo3DatabaseConstants()
+       ->populateLocalConfiguration()
        ->initializeCachingFramework()
        ->registerAutoloader()
-       ->addCorePearPathToIncludePath()
        ->checkUtf8DatabaseSettingsOrDie()
        ->transferDeprecatedCurlSettings()
        ->setCacheHashOptions()
@@ -75,33 +66,31 @@ Typo3_Bootstrap::getInstance()
        ->configureExceptionHandling()
        ->setMemoryLimit()
        ->defineTypo3RequestTypes()
-       ->loadAdditionalConfigurationFromExtensions()
-       ->deprecationLogForOldXclassRegistration()
+       ->populateTypo3LoadedExtGlobal(TRUE)
+       ->loadAdditionalConfigurationFromExtensions(TRUE)
+       ->deprecationLogForOldExtCacheSetting()
        ->initializeExceptionHandling()
        ->requireAdditionalExtensionFiles()
        ->setFinalCachingFrameworkCacheConfiguration()
        ->defineLoggingAndExceptionConstants()
        ->unsetReservedGlobalVariables()
-       ->initializeGlobalTimeVariables()
        ->initializeTypo3DbGlobal(TRUE);
-Typo3_Bootstrap_Cli::initializeCliKeyOrDie();
-Typo3_Bootstrap::getInstance()
-       ->loadExtensionTables()
-               // TODO: Check if we really need the sprite manager on the command line
-       ->initializeSpriteManager(TRUE)
+\TYPO3\CMS\Cli\CliBootstrap::initializeCliKeyOrDie();
+\TYPO3\CMS\Core\Core\Bootstrap::getInstance()
+       ->loadExtensionTables(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