Skip to content

Commit

Permalink
[BUGFIX] Do not register the BackendRouteInitialization XCLASS in TYP…
Browse files Browse the repository at this point in the history
…O3 v12
  • Loading branch information
vertexvaar committed Nov 7, 2023
1 parent 900b40e commit c227db5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use In2code\In2publishCore\Service\Context\ContextService;
use TYPO3\CMS\Core\Configuration\ExtensionConfiguration;
use TYPO3\CMS\Core\Core\Environment;
use TYPO3\CMS\Core\Information\Typo3Version;
use TYPO3\CMS\Core\Log\LogLevel;
use TYPO3\CMS\Core\Log\Writer\DatabaseWriter;
use TYPO3\CMS\Core\Utility\GeneralUtility;
Expand All @@ -27,9 +28,12 @@
/************************************************* Patching TYPO3 *************************************************/
// Issue: https://forge.typo3.org/issues/95962
// Patch: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72160
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\TYPO3\CMS\Backend\Middleware\BackendRouteInitialization::class] = [
'className' => BackendRouteInitialization::class,
];
$typo3Version = new Typo3Version();
if (version_compare($typo3Version->getVersion(), '12', '<')) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\TYPO3\CMS\Backend\Middleware\BackendRouteInitialization::class] = [
'className' => BackendRouteInitialization::class,
];
}

/************************************************ Record Extension ************************************************/
$file = Environment::getVarPath() . '/cache/code/content_publisher/record_extension_trait.php';
Expand Down

0 comments on commit c227db5

Please sign in to comment.