[FLOW3-general] DependencyInjection: Best practice

Steffen Müller typo3 at t3node.com
Wed Jan 6 18:58:24 CET 2010


Hi.

On 06.01.2010 13:11 Robert Lemke wrote:
> 
> Although there is a little perfomance gain when using 2), it is much more convenient to use 3). However, 2) is more portable than 3) because 3) really relies on the framework to know about @inject annotations. 
> 
> I recommend that you use 3) in all of your applications if the portability aspect is not important in your case. I must admit though that we have the policy to use only setter injection in FLOW3 itself due to speed reasons and some other implications.
> 

Sorry. I didn't get it.
You propose 3) as more convenient, but for which reasons?
Portability and performance might be better in 2)

Did I miss something?

-- 
cheers,
Steffen

TYPO3 Blog: http://www.t3node.com/
Microblog:  http://twitter.com/t3node


More information about the FLOW3-general mailing list