浏览代码

fix ext_localconf files to avoid use conflicts

Olivier Massot 5 年之前
父节点
当前提交
364f68fa9f
共有 2 个文件被更改,包括 10 次插入19 次删除
  1. 5 9
      ot_admin/ext_localconf.php
  2. 5 10
      ot_templating/ext_localconf.php

+ 5 - 9
ot_admin/ext_localconf.php

@@ -1,10 +1,6 @@
 <?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
@@ -16,16 +12,16 @@ $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][TYPO3\CMS\Backend\Middleware\Backe
 
 $GLOBALS['TYPO3_CONF_VARS']['LOG']['Opentalent']['OtAdmin']['writerConfiguration'] = [
     // configuration for ERROR level log entries
-    LogLevel::DEBUG => [
+    TYPO3\CMS\Core\Log\LogLevel::DEBUG => [
         // add a FileWriter
-        FileWriter::class => [
+        TYPO3\CMS\Core\Log\Writer\FileWriter::class => [
             // configuration for the writer
-            'logFile' => Environment::getVarPath() . '/log/typo3_otadmin.log'
+            'logFile' => TYPO3\CMS\Core\Core\Environment::getVarPath() . '/log/typo3_otadmin.log'
         ]
     ],
-    LogLevel::WARNING => [
+    TYPO3\CMS\Core\Log\LogLevel::WARNING => [
         // add a DatabaseWriter
-        DatabaseWriter::class => [
+        TYPO3\CMS\Core\Log\Writer\DatabaseWriter::class => [
             'logTable' => 'tx_opentalent_log'
         ]
     ]

+ 5 - 10
ot_templating/ext_localconf.php

@@ -1,10 +1,5 @@
 <?php
 
-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;
-
 if (!defined('TYPO3_MODE')) {
     die('Access denied.');
 }
@@ -23,16 +18,16 @@ if (!defined('TYPO3_MODE')) {
 
 $GLOBALS['TYPO3_CONF_VARS']['LOG']['Opentalent']['OtTemplating']['writerConfiguration'] = [
     // configuration for ERROR level log entries
-    LogLevel::DEBUG => [
+    TYPO3\CMS\Core\Log\LogLevel::DEBUG => [
         // add a FileWriter
-        FileWriter::class => [
+        TYPO3\CMS\Core\Log\Writer\FileWriter::class => [
             // configuration for the writer
-            'logFile' => Environment::getVarPath() . '/log/typo3_ottemplating.log'
+            'logFile' => TYPO3\CMS\Core\Core\Environment::getVarPath() . '/log/typo3_ottemplating.log'
         ]
     ],
-    LogLevel::WARNING => [
+    TYPO3\CMS\Core\Log\LogLevel::WARNING => [
         // add a DatabaseWriter
-        DatabaseWriter::class => [
+        TYPO3\CMS\Core\Log\Writer\DatabaseWriter::class => [
             'logTable' => 'tx_opentalent_log'
         ]
     ]