!!![~BUGFIX] Extbase: Changed registration of extbase dispatcher in BE mode. See...
authorBastian Waidelich <bastian@typo3.org>
Wed, 23 Sep 2009 15:36:47 +0000 (15:36 +0000)
committerBastian Waidelich <bastian@typo3.org>
Wed, 23 Sep 2009 15:36:47 +0000 (15:36 +0000)
[+TASK] Extbase (Tests): Added require statement to Base_testcase to avoid error message in case Tx_Extbase_Utility_ClassLoader has not been loaded yet

typo3/sysext/extbase/Tests/Base_testcase.php
typo3/sysext/extbase/ext_tables.php

index 21e6f08..8ac89b0 100644 (file)
@@ -39,6 +39,9 @@ abstract class Tx_Extbase_Base_testcase extends tx_phpunit_testcase {
         * Constructs this TestCase and registers the autoloader
         */
        public function __construct() {
+               if (!class_exists('Tx_Extbase_Utility_ClassLoader')) {
+                       require(t3lib_extmgm::extPath('extbase') . 'Classes/Utility/ClassLoader.php');
+               }
                spl_autoload_register(array('Tx_Extbase_Utility_ClassLoader', 'loadClass'));
        }
 
index 50da33f..65817b9 100644 (file)
@@ -15,10 +15,8 @@ if (TYPO3_MODE == 'BE') {
        } catch(t3lib_cache_exception_NoSuchCache $exception) {
 
        }
-       
-       $TBE_MODULES['_dispatcher'][] = t3lib_div::makeInstance('Tx_Extbase_Dispatcher');
-
 
+       $TBE_MODULES['_dispatcher'][] = 'Tx_Extbase_Dispatcher';
 
        $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['extbase'] = 'tx_extbase_utility_extbaserequirementscheck';
 }