Issue Bug Closed

#89207Incorrect PSR-11 related deprecation messages being triggered by ObjectManager->get()

Benjamin Franzke 09/19/19, 13:51 updated 12/23/19, 22:42

Description

Due to a wrong condition a deprecation error is triggered by Extbase\Object\ObjectManager->get()
(although no constructor arguments have been passed) when the object to be created/retrieved exists in the (symfony) PSR-11 container.

Example:

TYPO3 Deprecation Notice: TYPO3\CMS\Extbase\SignalSlot\Dispatcher is available in the PSR-11 container. That means you should not try to instanciate it using constructor arguments. Falling back to legacy extbase based injection. in […]/typo3/sysext/extbase/Classes/Object/ObjectManager.php line 123

Reviews 1