Actions
Bug #104057
openSingleton instances are not possible for LogWriter
Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
AdminPanel
Target version:
-
Start date:
2024-06-11
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
This leads to the InMemoryLogWriter of the admin panel to be instaciated as new class. Therefor all the logs will not be shown, because they got written in another instance.
The problem lies in the LogManager and GeneralUtiliy:makeInstance
The line $logWriter = GeneralUtility::makeInstance($logWriterClassName, $logWriterOptions); when $logWriterOptions=[]
Then GeneralUtiliy:makeInstance will not get the container:
if (self::$container !== null && $constructorArguments === [] && self::$container->has($className)) { return self::$container->get($className); }
Actions