Annotations are easier to understand while working with your PHP classes, but they also don't give you a global overview of the code while working (you don't see all references on one file). Annotations have also a pitfall when it comes to performance, as the AnnotationReader needs to cache stuff, and if it's not cached, then you'll get SLOOOOOOOOOOOOOW processing with lots of parsing behind the scenes. I personally go for annotations, I like to see what references what directly in my classes, and with a well-configured cache I don't have any troubles :)
Marco Pivetta @Ocramius <http://twitter.com/Ocramius> http://marco-pivetta.com On 13 May 2011 15:40, keymaster <ad...@optionosophy.com> wrote: > > Are there any advantages of one over the other, or is it totally a matter > of personal taste? > > -- > 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 users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?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 users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en