[Flow] Dependency Injection on Abstract Class
Bastian Waidelich
bastian at typo3.org
Thu Aug 8 11:35:19 CEST 2013
Christian Loock wrote:
Hi Christian,
> May it be, that Dependency Injection does not work in abstract classes?
> http://pastebin.com/0Rxrzmhy
Apparently DI doesn't work with relative namespaces yet in abstract
classes (see [1]).
But if you refer to the fully qualified class name everything should work.
In your example you're missing a leading slash, it should be
"\TYPO3\Flow\I18n\Translator" not "TYPO3\Flow\I18n\Translator".
But the log should tell you about it!?
[1] http://forge.typo3.org/issues/50909
--
Bastian Waidelich
--
Core Developer Team
TYPO3 .... inspiring people to share!
Get involved: typo3.org
More information about the Flow
mailing list