Hi Matthias, On Jun 20, 8:56 am, "Matthias N." <[EMAIL PROTECTED]> wrote: > Well I don't know Spring but my opinion is that AOP should be > supported by the language itself and not be implemented somehow hacky > in the code. I know the typo3 people have an AOP solution in their 5.0 > branch but this is such a big thing with about 20 classes or more.. I > don't think that we really want such an overhead with symfony..!? > But feel free to contribute like I do with the IoC stuff. ;-)
I think you realy should read the introduction to spring, it is shorter than you belive, and if it is not the shortest intro you read it will keep your interresstet till you are trough, belive me. AOP can be implemented using IoC patters, as you will see from the spring intro, and of course like everything in spring they did it very light weight, not using 20 classes =) AOP integrated into the IoC makes it as decoupled as the rest if IoC. Have a look at existing (yet not well working) AOP solutions for PHP and you will see, they tend to make your code-fragements depend on each other instead if decoupling them. With AOP via IoC you have configurable, not codeable, join-points for aspects, that again can be simple object and dont need to be special language constructs. Please have a look at the spring introduction and then form your opinion about AOP based on IoC-container. I also guess you will find a lot of ideas for evolving the symfony- factories pattern, since it is very similar to what spring does. A simple configurable factory as base (plus a service-locater alike version called 'context'), adding contructor- and setter-injection, a couple of additional nice config options and associated behaviors and a generic (of course configurable) proxy (in PHP done even easier when using __call()) to add AOP features. (meaning that proxy then can call [configurable] objects methods upon events like instatiation/ retrieving of the object, bevore/after a specific method call [secure method calls!] and so on) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en -~----------~----~----~----~------~----~------~--~---
