ext_localconf.php 1.0 KB

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