-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_localconf.php
More file actions
36 lines (30 loc) · 958 Bytes
/
ext_localconf.php
File metadata and controls
36 lines (30 loc) · 958 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
28
29
30
31
32
33
34
35
36
<?php
declare(strict_types=1);
use TYPO3\CMS\IndexedSearch\Controller\SearchController;
use Undkonsorten\Easychat\Controller\EasychatController;
use TYPO3\CMS\Core\Log\Writer\FileWriter;
use TYPO3\CMS\Core\Core\Environment;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
ExtensionUtility::configurePlugin(
'Easychat',
'EasychatFrontend',
[
EasychatController::class => 'chatFrontend',
],
[
EasychatController::class => 'chatFrontend',
],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT,
);
if (getenv('TYPO3_MINIMUM_LOGLEVEL')) {
$GLOBALS['TYPO3_CONF_VARS']['LOG']['Undkonsorten']['Easychat'] = [
'writerConfiguration' => [
getenv('TYPO3_MINIMUM_LOGLEVEL') => [
FileWriter::class => [
// configuration for the writer
'logFile' => Environment::getVarPath() . '/log/easychat.log'
]
]
]
];
}