Bug #88843
closedRegistering a hook for tcaIsBeingBuilt triggers LogicException
100%
Description
I've just tried the newly released TYPO3 v10 and stumbled upon an exception.
When you register a Slot for the Signal tcaIsBeingBuilt
in your ext_localconf, you will get a LogicException in TYPO3 v10.0.0:
$signalSlotDispatcher->connect(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::class, 'tcaIsBeingBuilt', \Example\ExampleExtension\TCA::class, 'addTCA');
The Exception is:
(1/1) #1549446998 LogicException
TYPO3\CMS\Core\Cache\CacheManager can not be injected/instantiated during ext_localconf.php loading. Use lazy loading instead.
This apparently happens when the signal is dispatched via Extbase. An ObjectManager is created which would get a CacheManager:
Dispatcher.php#L126
Updated by Gerrit Code Review almost 5 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61373
Updated by Gerrit Code Review over 4 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61373
Updated by Benjamin Franzke over 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 6d7fb6e92a3f5ca416ec464f2745510c27b17f3c.