-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
34 lines (28 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
30
31
32
33
<?php
defined('TYPO3_MODE') or die('Access denied.');
// Driver
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Resource\Driver\DriverRegistry::class)->registerDriverClass(
\HDNET\FalCelum\Driver\CelumDriver::class,
\HDNET\FalCelum\Driver\CelumDriver::DRIVER_TYPE,
'Celum',
'FILE:EXT:' . \HDNET\FalCelum\Configuration::EXTENSION_KEY . '/Configuration/FlexForm/CelumDriverFlexForm.xml'
);
// Extractor
\TYPO3\CMS\Core\Resource\Index\ExtractorRegistry::getInstance()->registerExtractionService(\HDNET\FalCelum\Index\Extractor::class);
// Caching
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][\HDNET\FalCelum\Cache::IDENTIFIER])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][\HDNET\FalCelum\Cache::IDENTIFIER] = [
'frontend' => \TYPO3\CMS\Core\Cache\Frontend\VariableFrontend::class,
'options' => [
'defaultLifetime' => \HDNET\FalCelum\Cache::DEFAULT_LIFE_TIME
],
];
}
// Logging (@todo Enable via Extension configuration)
$GLOBALS['TYPO3_CONF_VARS']['LOG']['HDNET']['FalCelum']['writerConfiguration'] = [
\TYPO3\CMS\Core\Log\LogLevel::DEBUG => [
\TYPO3\CMS\Core\Log\Writer\FileWriter::class => [
'logFileInfix' => 'fal_celum',
]
]
];