Project

General

Profile

Actions

Bug #88843

closed

Registering a hook for tcaIsBeingBuilt triggers LogicException

Added by Robert Vock almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2019-07-25
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

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

Actions #1

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

Actions #2

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

Actions #3

Updated by Benjamin Franzke over 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #4

Updated by Benni Mack over 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF