netlogix/nxstyleguide

netlogix styleguide

Installs: 10 377

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 0

Open Issues: 4

Type:typo3-cms-extension

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

README

TYPO3 V12 Minimum PHP Version GitHub CI status

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']);
     }