ext_localconf.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. if (!defined('TYPO3_MODE')) {
  3. die('Access denied.');
  4. }
  5. // ext_localconf.php contient les directives permettant de configurer le frontend
  6. \FluidTYPO3\Flux\Core::registerProviderExtensionKey(
  7. 'OpenTalent.OtTemplating',
  8. 'Page'
  9. );
  10. \FluidTYPO3\Flux\Core::registerProviderExtensionKey(
  11. 'OpenTalent.OtTemplating',
  12. 'Content'
  13. );
  14. $GLOBALS['TYPO3_CONF_VARS']['LOG']['Opentalent']['OtTemplating']['writerConfiguration'] = [
  15. // configuration for ERROR level log entries
  16. TYPO3\CMS\Core\Log\LogLevel::DEBUG => [
  17. // add a FileWriter
  18. TYPO3\CMS\Core\Log\Writer\FileWriter::class => [
  19. // configuration for the writer
  20. 'logFile' => TYPO3\CMS\Core\Core\Environment::getVarPath() . '/log/typo3_ottemplating.log'
  21. ]
  22. ],
  23. TYPO3\CMS\Core\Log\LogLevel::WARNING => [
  24. // add a DatabaseWriter
  25. TYPO3\CMS\Core\Log\Writer\DatabaseWriter::class => [
  26. 'logTable' => 'tx_opentalent_log'
  27. ]
  28. ]
  29. ];
  30. $GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['Controller/NewsController.php']['createDemandObjectFromSettings'] = ['Opentalent\OtTemplating\News\NewsFilter->createDemandObjectFromSettings'];