netlogix / nxstyleguide
netlogix styleguide
Installs: 10 387
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 4
Type:typo3-cms-extension
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-12-16 20:24:29 UTC
README
Compatibility
The current version of this extension has been tested in TYPO3 12 on PHP 8.1, 8.2 and 8.3.
The following patch for the TypoScriptFrontendController is currently required for the extension to be fully functional:
{ // ... "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']); }