netlogix/nxstyleguide

netlogix 风格指南

安装次数: 8,056

依赖项: 0

建议者: 0

安全性: 0

星标: 0

关注者: 4

分支: 0

开放问题: 4

类型:typo3-cms-extension

dev-main 2024-09-12 19:22 UTC

README

TYPO3 V12 Minimum PHP Version GitHub CI status

兼容性

当前版本的扩展已在 TYPO3 12 上对 PHP 8.1、8.2 和 8.3 进行了测试。

目前需要以下修复程序才能使扩展完全功能正常:

{
  // ...
  "extra": {
    "patches": {
      // ...
      "typo3/cms-frontend": {
        "[FEATURE] Add TSFE Hook insertPageCacheContent": "patches/typo3/cms/FEATURE-TSFE-insertPageCacheContent-hook.patch"
      }
      // ...
    }
  }
  // ...
}
--- a/Classes/Controller/TypoScriptFrontendController.php
+++ b/Classes/Controller/TypoScriptFrontendController.php
@@ -2657,6 +2657,11 @@
         }
         // Add the cache themselves as well, because they are fetched by getPageCacheTags()
         $cacheData['cacheTags'] = $this->pageCacheTags;
+
+        $_params = ['pObj' => &$this, 'cache_data' => &$cacheData];
+        foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['insertPageCacheContent'] ?? [] as $_funcRef) {
+            GeneralUtility::callUserFunction($_funcRef, $_params, $this);
+        }
         $this->pageCache->set($this->newHash, $cacheData, $this->pageCacheTags, $expirationTstamp - $GLOBALS['EXEC_TIME']);
     }