Hi Matthew, On 21.09.2012 16:01, Matthew Weier O'Phinney wrote: >> It seems extremly redundant to do this for each entity/form. > > Use an initializer instead. The process is quite simple:
> I'd go with initializers if there's only one or two common injections, > and an abstract factory if the instantiation logic is more complex. I love it. i made a couple of *AwareInterfaces and now as soon as one of the classes implements this interface things are done automatic. and i dont have to care if a new class is added. Really really nice. thanks. Ludwig -- Ludwig Ruderstaller http://www.cwd.at -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
