-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathext_localconf.php
56 lines (47 loc) · 2.49 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
use TYPO3\CMS\Core\Http\ApplicationType;
use TYPO3\CMS\Core\Utility\GeneralUtility;
defined('TYPO3') || die();
// Adding symphony-support for TYPO3 9.x without composer-mode
$typo3Version = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Information\Typo3Version::class);
if ($typo3Version->getMajorVersion() == 9) {
require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('datamints_locallang_builder', 'Resources/Private/DependenciesLegacy/vendor/autoload.php');
}
// Adding other libs that are defined in a seperate composer-file, to gain access for non-composer-instances. Currently not necessary
//require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('datamints_locallang_builder', 'Resources/Private/Dependencies/vendor/autoload.php');
// Using own cache (DB-Based)
if (empty($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['datamintslocallangbuilder_cache'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['datamintslocallangbuilder_cache'] = [];
}
// always include typoscript
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
'datamints_locallang_builder',
'constants',
"@import 'EXT:datamints_locallang_builder/Configuration/TypoScript/constants.typoscript'"
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
'datamints_locallang_builder',
'setup',
"@import 'EXT:datamints_locallang_builder/Configuration/TypoScript/setup.typoscript'"
);
// Using typo3 logging
$GLOBALS['TYPO3_CONF_VARS']['LOG']['Datamints']['DatamintsLocallangBuilder']['writerConfiguration'] = [
\TYPO3\CMS\Core\Log\LogLevel::INFO => [
\TYPO3\CMS\Core\Log\Writer\FileWriter::class => [
'logFile' => \TYPO3\CMS\Core\Core\Environment::getVarPath() . '/log/datamints_locallang_builder.log',
],
],
\TYPO3\CMS\Core\Log\LogLevel::ERROR => [
\TYPO3\CMS\Core\Log\Writer\FileWriter::class => [
'logFile' => \TYPO3\CMS\Core\Core\Environment::getVarPath() . '/log/datamints_locallang_builder_critical.log',
],
],
];
$GLOBALS['TYPO3_CONF_VARS']['LOG']['Datamints']['DatamintsLocallangBuilder']['processorConfiguration'] = [
\TYPO3\CMS\Core\Log\LogLevel::INFO => [
\Datamints\DatamintsLocallangBuilder\Log\Processor\BackendUserProcessor::class => [],
],
\TYPO3\CMS\Core\Log\LogLevel::ERROR => [
\Datamints\DatamintsLocallangBuilder\Log\Processor\BackendUserProcessor::class => [],
],
];