3181d227a7e796b7835522983153e2d292f5033a
[Packages/TYPO3.CMS.git] / typo3 / sysext / dbal / ext_localconf.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 // Main xclass
5 $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\TYPO3\CMS\Core\Database\DatabaseConnection::class] = [
6 'className' => \TYPO3\CMS\Dbal\Database\DatabaseConnection::class
7 ];
8
9 // Register caches if not already done in localconf.php or a previously loaded extension.
10 if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['dbal'])) {
11 $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['dbal'] = [
12 'backend' => \TYPO3\CMS\Core\Cache\Backend\TransientMemoryBackend::class,
13 'groups' => []
14 ];
15 }
16 if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['dbal_phpcode'])) {
17 $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['dbal_phpcode'] = [
18 'frontend' => \TYPO3\CMS\Core\Cache\Frontend\PhpFrontend::class,
19 'backend' => \TYPO3\CMS\Core\Cache\Backend\FileBackend::class,
20 'options' => [
21 'defaultLifetime' => 0,
22 ],
23 'groups' => ['system']
24 ];
25 }