[TASK] Doctrine: Migrate SqlSchemaMigrationService
[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 // xclass of SqlSchemaMigrationService handling dbal specific stuff
9 $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\TYPO3\CMS\Install\Service\SqlSchemaMigrationService::class] = [
10 'className' => \TYPO3\CMS\Dbal\Service\SqlSchemaMigrationService::class
11 ];
12
13 // Register caches if not already done in localconf.php or a previously loaded extension.
14 if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['dbal'])) {
15 $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['dbal'] = [
16 'backend' => \TYPO3\CMS\Core\Cache\Backend\TransientMemoryBackend::class,
17 'groups' => []
18 ];
19 }
20 if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['dbal_phpcode'])) {
21 $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['dbal_phpcode'] = [
22 'frontend' => \TYPO3\CMS\Core\Cache\Frontend\PhpFrontend::class,
23 'backend' => \TYPO3\CMS\Core\Cache\Backend\FileBackend::class,
24 'options' => [
25 'defaultLifetime' => 0,
26 ],
27 'groups' => ['system']
28 ];
29 }