> It makes me wonder, how would you implement AOP in PHP without language
> extensions ? Docblock "annotations" ? As far as I can tell, it would be
> difficult to implement point-cuts without extending classes and doing all
> sorts of black magic.
>

Without language extension for runtime weaving, it'll either be an AOP
"compiler" (to rewrite PHP files) or proxy, which I prefer the latter (it's
also the default in Spring).

Pointcut definitions shouldn't be an issue at all, it can be defined via
helpers/factories in code, or an XML or YAML.

I took a quick look at FLOW3 as highlighted by Martin, they're using the
auto proxy approach:

http://git.typo3.org/FLOW3/Packages/FLOW3.git?a=tree;f=Classes/AOP

Yuen-Chi Lian | www.yclian.com
"I do not seek; I find." - Pablo Picasso



>  --
>> If you want to report a vulnerability issue on symfony, please send it to
>> security at symfony-project.com
>>
>> 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]<symfony-devs%[email protected]>
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-devs?hl=en
>>
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> 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]<symfony-devs%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/symfony-devs?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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

Reply via email to