-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathext_localconf.php
More file actions
27 lines (22 loc) · 924 Bytes
/
ext_localconf.php
File metadata and controls
27 lines (22 loc) · 924 Bytes
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
<?php
/** @noinspection PhpFullyQualifiedNameUsageInspection */
use TYPO3\CMS\Core\Core\Environment;
if (!defined('TYPO3')) {
die('Access denied.');
}
if (TYPO3 === 'BE') {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptConstants('@import "EXT:taskqueue/Configuration/TypoScript/constants.txt"');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup('@import "EXT:taskqueue/Configuration/TypoScript/setup.txt"');
}
if (getenv('TASKQUEUE_MINIMUM_LOGLEVEL')) {
$GLOBALS['TYPO3_CONF_VARS']['LOG']['Undkonsorten']['Taskqueue'] = [
'writerConfiguration' => [
getenv('TASKQUEUE_MINIMUM_LOGLEVEL') => [
\TYPO3\CMS\Core\Log\Writer\FileWriter::class => [
// configuration for the writer
'logFile' => Environment::getVarPath() . '/log/taskqueue.log'
]
]
]
];
}