[BUGFIX] Adjust hooks after moving/namespacing
[Packages/TYPO3.CMS.git] / typo3 / sysext / dbal / ext_localconf.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5
6 $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Core\\Database\\DatabaseConnection'] = array('className' => 'TYPO3\\CMS\\Dbal\\Database\\DatabaseConnection');
7 $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Core\\Database\\SqlParser'] = array('className' => 'TYPO3\\CMS\\Dbal\\Database\\SqlParser');
8 $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Recordlist\\RecordList\\DatabaseRecordList'] = array('className' => 'TYPO3\\CMS\\Dbal\\RecordList\\DatabaseRecordList');
9
10 // Register a hook for the installer
11 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install/mod/class.tx_install.php']['stepOutput'][] = 'EXT:dbal/Classes/Hooks/InstallToolHooks.php:TYPO3\\CMS\\Dbal\\Hooks\\InstallToolHooks';
12 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install/mod/class.tx_install.php']['writeLocalconf'][] = 'EXT:dbal/Classes/Hooks/InstallToolHooks.php:TYPO3\\CMS\\Dbal\\Hooks\\InstallToolHooks';
13 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install/mod/class.tx_install.php']['requiredPhpModules'][] = 'EXT:dbal/Classes/Hooks/InstallToolHooks.php:TYPO3\\CMS\\Dbal\\Hooks\\InstallToolHooks';
14 // Register a hook for the extension manager
15 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/mod/tools/em/index.php']['checkDBupdates'][] = 'EXT:dbal/Classes/Hooks/ExtensionManagerHooks.php:TYPO3\\CMS\\Dbal\\Hooks\\ExtensionManagerHooks';
16 // Register caches if not already done in localconf.php or a previously loaded extension.
17 if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['dbal'])) {
18 $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['dbal'] = array(
19 'backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\TransientMemoryBackend'
20 );
21 }
22 ?>