netlogix / nxstyleguide
netlogix 风格指南
dev-main
2024-09-12 19:22 UTC
Requires
- php: ^8.1
- typo3/cms-core: ^12.4
Requires (Dev)
- ext-sqlite3: *
- netlogix/coding-guidelines-php: ^1.0
- phpunit/phpcov: ^9.0
- ssch/typo3-rector: ^2.0
- typo3/testing-framework: ^8.0
This package is auto-updated.
Last update: 2024-09-16 19:52:47 UTC
README
兼容性
当前版本的扩展已在 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']); }