-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathext_localconf.php
29 lines (27 loc) · 1.29 KB
/
ext_localconf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
defined('TYPO3_MODE') or die();
// Main xclass
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\TYPO3\CMS\Core\Database\DatabaseConnection::class] = [
'className' => \TYPO3\CMS\Dbal\Database\DatabaseConnection::class
];
// xclass of SqlSchemaMigrationService handling dbal specific stuff
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\TYPO3\CMS\Install\Service\SqlSchemaMigrationService::class] = [
'className' => \TYPO3\CMS\Dbal\Service\SqlSchemaMigrationService::class
];
// Register caches if not already done in localconf.php or a previously loaded extension.
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['dbal'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['dbal'] = [
'backend' => \TYPO3\CMS\Core\Cache\Backend\TransientMemoryBackend::class,
'groups' => []
];
}
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['dbal_phpcode'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['dbal_phpcode'] = [
'frontend' => \TYPO3\CMS\Core\Cache\Frontend\PhpFrontend::class,
'backend' => \TYPO3\CMS\Core\Cache\Backend\FileBackend::class,
'options' => [
'defaultLifetime' => 0,
],
'groups' => ['system']
];
}