Bugfix: Only register hook if we are not in CLI mode to avoid fatal error in ApacheSolrForTypo3

* FrontendController must not be modified to initalize Solr index service (getInitializedIndexService)
This commit is contained in:
Martin Terber 2024-11-29 11:59:28 +01:00
parent 9f0e6cd6c5
commit 2ceed7a419

View file

@ -1,5 +1,6 @@
<?php <?php
defined('TYPO3_MODE') or die(); defined('TYPO3_MODE') or die();
if (PHP_SAPI !== 'cli') {
\WerkraumMedia\ABTest\Hook\TypoScriptFrontendController::register(); \WerkraumMedia\ABTest\Hook\TypoScriptFrontendController::register();
}