[BUGFIX] Hide unsafe extensions in EM TER list
[Packages/TYPO3.CMS.git] / typo3 / cli_dispatch.phpsh
index ffbc138..f96e090 100755 (executable)
@@ -42,14 +42,14 @@ 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()
        ->populateLocalConfiguration()
+       ->registerExtDirectComponents()
        ->initializeCachingFramework()
        ->registerAutoloader()
        ->checkUtf8DatabaseSettingsOrDie()
@@ -74,22 +74,22 @@ Typo3_Bootstrap::getInstance()
        ->defineLoggingAndExceptionConstants()
        ->unsetReservedGlobalVariables()
        ->initializeTypo3DbGlobal(TRUE);
-Typo3_Bootstrap_Cli::initializeCliKeyOrDie();
-Typo3_Bootstrap::getInstance()
+\TYPO3\CMS\Core\Core\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