Re: Attributes/Annotations Case Study: Drupal

From: Date: Sat, 30 Apr 2016 04:54:15 +0000
Subject: Re: Attributes/Annotations Case Study: Drupal
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-92969@lists.php.net to get a copy of this message
Hi Larry, On Apr 30, 2016 6:48 AM, "Larry Garfield" <larry@garfieldtech.com> wrote: > > Most of the examples that have been given so far are either trivial boolean flags or data validation rules to be evaled. In practice, very little of Drupal's use of annotations in Drupal 8 fit either category. Rather, they're used primarily as, in essence, a serialized metadata object describing a class, which is used for registering that class and potentially others. I figured I'd give the proposed syntax a try with some Drupal examples and see how well it fit. > Disclaimer: I'm sure someone will pipe up with "your use case is invalid because you shouldn't be using annotations that way." What I would like to say yes. Very very loudly. But I am not sure about what is what or what defined what in your complex example Do you have a link to the source file so I can make an informed reply please?

« previous php.internals (#92969) next »