[+BUGFIX] (Persistence) Make Typo3QuerySettings exchangeable
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / ext_localconf.php
1 <?php
2 if (!defined ('TYPO3_MODE')) die ('Access denied.');
3
4 require_once(t3lib_extMgm::extPath('extbase') . 'Classes/Dispatcher.php');
5 require_once(t3lib_extMgm::extPath('extbase') . 'Classes/Utility/Extension.php');
6
7 // use own cache tables
8 // Reflection cache:
9 $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_extbase_reflection'] = array(
10 'frontend' => 't3lib_cache_frontend_VariableFrontend',
11 'backend' => 't3lib_cache_backend_DbBackend',
12 'options' => array(
13 'cacheTable' => 'tx_extbase_cache_reflection',
14 'tagsTable' => 'tx_extbase_cache_reflection_tags',
15 ),
16 );
17 // Object container cache:
18 $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_extbase_object'] = array(
19 'frontend' => 't3lib_cache_frontend_VariableFrontend',
20 'backend' => 't3lib_cache_backend_DbBackend',
21 'options' => array(
22 'cacheTable' => 'tx_extbase_cache_object',
23 'tagsTable' => 'tx_extbase_cache_object_tags',
24 ),
25 );
26
27 // We need to set the default implementation for Storage Backend & Query Settings
28 // the code below is NO PUBLIC API! It's just to make sure that
29 // Extbase works correctly in the backend if the page tree is empty or no
30 // template is defined.
31 $extbaseObjectContainer = t3lib_div::makeInstance('Tx_Extbase_Object_Container_Container'); // Singleton
32 $extbaseObjectContainer->registerImplementation('Tx_Extbase_Persistence_Storage_BackendInterface', 'Tx_Extbase_Persistence_Storage_Typo3DbBackend');
33 $extbaseObjectContainer->registerImplementation('Tx_Extbase_Persistence_QuerySettingsInterface', 'Tx_Extbase_Persistence_Typo3QuerySettings');
34 unset($extbaseObjectContainer);
35
36 # $GLOBALS ['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:extbase/Classes/Persistence/Hook/TCEMainValueObjectUpdater.php:tx_Extbase_Persistence_Hook_TCEMainValueObjectUpdater';
37 ?>