[Flow] Dependency Injection on Abstract Class

Bastian Waidelich bastian at typo3.org
Thu Aug 8 11:50:50 CEST 2013


Christian Loock wrote:

> Fortunatly, ActionController had the ObjectManager Injected, so I used
> this as a workarround.

I think you got me wrong: Your example should work as is if you fix the 
@var annotation for $translator from "TYPO3\Flow\I18n\Translator" to 
"\TYPO3\Flow\I18n\Translator".

If it doesn't you found a new bug

-- 
Bastian Waidelich
--
Core Developer Team

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the Flow mailing list