| 1234567891011121314151617181920212223242526272829 |
- <?php
- defined('TYPO3_MODE') || die();
- // 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)
- $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][TYPO3\CMS\Backend\Middleware\BackendUserAuthenticator::class] = [
- 'className' => Opentalent\OtAdmin\Middleware\OtBackendUserAuthenticator::class
- ];
- $GLOBALS['TYPO3_CONF_VARS']['LOG']['Opentalent']['OtAdmin']['writerConfiguration'] = [
- // configuration for ERROR level log entries
- TYPO3\CMS\Core\Log\LogLevel::DEBUG => [
- // add a FileWriter
- TYPO3\CMS\Core\Log\Writer\FileWriter::class => [
- // configuration for the writer
- 'logFile' => TYPO3\CMS\Core\Core\Environment::getVarPath() . '/log/typo3_otadmin.log'
- ]
- ],
- TYPO3\CMS\Core\Log\LogLevel::WARNING => [
- // add a DatabaseWriter
- TYPO3\CMS\Core\Log\Writer\DatabaseWriter::class => [
- 'logTable' => 'tx_opentalent_log'
- ]
- ]
- ];
|