|
|
@@ -1,6 +1,11 @@
|
|
|
<?php
|
|
|
defined('TYPO3_MODE') || die();
|
|
|
|
|
|
+use TYPO3\CMS\Core\Core\Environment;
|
|
|
+use TYPO3\CMS\Core\Log\LogLevel;
|
|
|
+use TYPO3\CMS\Core\Log\Writer\DatabaseWriter;
|
|
|
+use TYPO3\CMS\Core\Log\Writer\FileWriter;
|
|
|
+
|
|
|
// Because of this issue https://forge.typo3.org/issues/89449,
|
|
|
// we have to xclass the BackendUserAuthenticator backend middleware
|
|
|
// to allow routes to be public (but restricted to authorized ips)
|
|
|
@@ -8,3 +13,21 @@ $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][TYPO3\CMS\Backend\Middleware\Backe
|
|
|
'className' => Opentalent\OtAdmin\Middleware\OtBackendUserAuthenticator::class
|
|
|
];
|
|
|
|
|
|
+
|
|
|
+$GLOBALS['TYPO3_CONF_VARS']['LOG']['Opentalent']['OtAdmin']['writerConfiguration'] = [
|
|
|
+ // configuration for ERROR level log entries
|
|
|
+ LogLevel::DEBUG => [
|
|
|
+ // add a FileWriter
|
|
|
+ FileWriter::class => [
|
|
|
+ // configuration for the writer
|
|
|
+ 'logFile' => Environment::getVarPath() . '/log/typo3_otadmin.log'
|
|
|
+ ]
|
|
|
+ ],
|
|
|
+ LogLevel::WARNING => [
|
|
|
+ // add a DatabaseWriter
|
|
|
+ DatabaseWriter::class => [
|
|
|
+ 'logTable' => 'tx_opentalent_log'
|
|
|
+ ]
|
|
|
+ ]
|
|
|
+];
|
|
|
+
|