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

Malte Jansen mail at maltejansen.de
Sun Jan 11 19:46:43 CET 2009


Hi Karsten & Robert,

it would be nice get some feedback...
Bad idea? Not possible? Perhaps later? We working on it ;) ?

Malte

Malte Jansen schrieb:
> 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