ext_localconf.php 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. if (!defined('TYPO3_MODE')) {
  3. die('Access denied.');
  4. }
  5. $GLOBALS['TYPO3_CONF_VARS']['LOG']['Opentalent']['OtCore']['writerConfiguration'] = [
  6. // configuration for ERROR level log entries
  7. TYPO3\CMS\Core\Log\LogLevel::DEBUG => [
  8. // add a FileWriter
  9. TYPO3\CMS\Core\Log\Writer\FileWriter::class => [
  10. // configuration for the writer
  11. 'logFile' => TYPO3\CMS\Core\Core\Environment::getVarPath() . '/log/ot_typo3.log'
  12. ]
  13. ],
  14. TYPO3\CMS\Core\Log\LogLevel::WARNING => [
  15. // add a DatabaseWriter
  16. TYPO3\CMS\Core\Log\Writer\DatabaseWriter::class => [
  17. 'logTable' => 'ot_log'
  18. ]
  19. ]
  20. ];
  21. // Because of this issue https://forge.typo3.org/issues/89449,
  22. // we have to xclass the BackendUserAuthenticator backend middleware
  23. // to allow public routes to be really public
  24. $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][TYPO3\CMS\Backend\Middleware\BackendUserAuthenticator::class] = [
  25. 'className' => Opentalent\OtCore\Middleware\OtBackendUserAuthenticator::class
  26. ];
  27. $GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['Controller/NewsController.php']['createDemandObjectFromSettings'] = ['Opentalent\OtTemplating\News\NewsFilter->createDemandObjectFromSettings'];