[-FEATURE] Extbase: Removed the possibility to set the context extbase extensions...
authorJochen Rau <j.rau@web.de>
Sun, 2 May 2010 09:37:47 +0000 (09:37 +0000)
committerJochen Rau <j.rau@web.de>
Sun, 2 May 2010 09:37:47 +0000 (09:37 +0000)
typo3/sysext/extbase/Classes/Dispatcher.php

index eadb655..cfc721d 100644 (file)
@@ -104,12 +104,7 @@ class Tx_Extbase_Dispatcher {
                        return $content;
                }
                
-               $context = getenv('EXTBASE_CONTEXT');
-               if ($context == '') {
-                       $context = getenv('REDIRECT_EXTBASE_CONTEXT');
-               }
-               $context = (strlen($context) === 0) ? 'Production' : $context;
-               $this->initializeConfigurationManagerAndFrameworkConfiguration($configuration, $context);
+               $this->initializeConfigurationManagerAndFrameworkConfiguration($configuration);
 
                $requestBuilder = t3lib_div::makeInstance('Tx_Extbase_MVC_Web_RequestBuilder');
                $request = $requestBuilder->initialize(self::$extbaseFrameworkConfiguration);
@@ -136,13 +131,6 @@ class Tx_Extbase_Dispatcher {
                        try {
                                $controller->processRequest($request, $response);
                        } catch (Tx_Extbase_MVC_Exception_StopAction $ignoredException) {
-                       } catch (Exception $exception) {
-                               if ($context === 'Production') {
-                                       t3lib_div::sysLog(get_class($exception) . ': ' . $exception->getMessage(), 'Extbase', 4);
-                                       return '';
-                               } else {
-                                       throw $exception;
-                               }
                        }
                }
                $this->timeTrackPull();
@@ -185,10 +173,9 @@ class Tx_Extbase_Dispatcher {
         * Initializes the configuration manager and the Extbase settings
         *
         * @param $configuration The current incoming configuration
-        * @param $context The current context (not implemented, yet)
         * @return void
         */
-       protected function initializeConfigurationManagerAndFrameworkConfiguration($configuration, $context) {
+       protected function initializeConfigurationManagerAndFrameworkConfiguration($configuration) {
                if (TYPO3_MODE === 'FE') {
                        self::$configurationManager = t3lib_div::makeInstance('Tx_Extbase_Configuration_FrontendConfigurationManager');
                        self::$configurationManager->setContentObject($this->cObj);