-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathext_localconf.php
37 lines (31 loc) · 1.36 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
<?php
defined('TYPO3_MODE') || die('Access denied.');
if (TYPO3_MODE === 'BE') {
/** @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher */
$signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
'TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher'
);
// ext:solrfal enrich metadata and generate correct public url slot
$signalSlotDispatcher->connect(
'ApacheSolrForTypo3\\Solrfal\\Indexing\\DocumentFactory',
'fileMetaDataRetrieved',
'BeechIt\\SolrfalTextextract\\Aspects\\SolrFalAspect',
'fileMetaDataRetrieved'
);
}
if (!isset($GLOBALS['TYPO3_CONF_VARS']['LOG']['BeechIt']['SolrfalTextextract']['writerConfiguration'])) {
if (\TYPO3\CMS\Core\Core\Environment::getContext()->isProduction()) {
$logLevel = \TYPO3\CMS\Core\Log\LogLevel::ERROR;
} elseif (\TYPO3\CMS\Core\Core\Environment::getContext()->isDevelopment()) {
$logLevel = \TYPO3\CMS\Core\Log\LogLevel::DEBUG;
} else {
$logLevel = \TYPO3\CMS\Core\Log\LogLevel::INFO;
}
$GLOBALS['TYPO3_CONF_VARS']['LOG']['BeechIt']['SolrfalTextextract']['writerConfiguration'] = [
$logLevel => [
\TYPO3\CMS\Core\Log\Writer\FileWriter::class => [
'logFile' => \TYPO3\CMS\Core\Core\Environment::getVarPath() . '/log/solrfal_textextract.log'
]
],
];
}