[TYPO3-50-general] Improvment for Injections?!?

Malte Jansen mail at maltejansen.de
Mon Dec 8 21:06:07 CET 2008


Hi,

I just tested the AOP and discovered, if you just use an aspect for 
injecting a class.

So what about some injecting the Classes via a DocComment-Tag-Syntax?
e.g.
@inject $objectFactory F3::FLOW3::Object::FactoryInterface
@inject property F3::MyPackage::MyClassInterface

There is no autocompleting, but the outline of a class has less entries 
and injecting something is more or less more an AOP-aspect, than 
belonging to a model.

And if you want to test a class, you can use the old-fashioned-syntax 
(implemented somehow as aspect):
public function injectObjectFactory(F3::FLOW3::Object::FactoryInterface 
$objectFactory);

Cheers,

Malte


More information about the TYPO3-project-5_0-general mailing list