Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92969 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80246 invoked from network); 30 Apr 2016 04:54:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Apr 2016 04:54:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.47 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.218.47 mail-oi0-f47.google.com Received: from [209.85.218.47] ([209.85.218.47:34003] helo=mail-oi0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B7/B2-58459-B7A34275 for ; Sat, 30 Apr 2016 00:54:20 -0400 Received: by mail-oi0-f47.google.com with SMTP id k142so140343533oib.1 for ; Fri, 29 Apr 2016 21:54:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=RzuFyYlwVSz3i7qWTVDiGecrPlVBn1tw8UTO7Oy5m1U=; b=w8jfIB7QjsR8OWLY/BuOXmiDoCPL8jbo5QStzfQVbk8b4163UsFnub9zSFtrPJIhmZ CfCdeRId+h0/hu3vOzLQjCbB9t1rqpb1XeLQ6ZwmmoBeyhg9TnOpm6e4M90tz0eXophM BLC9lPiY1VRrOTBou5WZRZfp+tzO93klD+G77h9WyUDpY7H0tGQ9jsiAYC9jQ9BhGZmK X0HN+RGP8d75IasXcrtgwlkiNfHhJci6xm/OUM3KLzOtpuiFbBqXmbSo3UfAdu4IsQXZ Pe6rOKFnRQLjuanLAVaf/v4NRBoGYeI6swE9LDs3AdUOYRt6+roPu3Eg7ZfJTpf0/mIK ZkTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=RzuFyYlwVSz3i7qWTVDiGecrPlVBn1tw8UTO7Oy5m1U=; b=GPMGXT+s5xiCFwoxB8eyEntZzpP2uSH9q1EKNswbd0ZCIivOubD3HlKbb8yjEzEOmS 3S05exY/YedhsLh0CDlUa0PwVfFeiOUTqX/A/ydJdN2/uH0GJvp3NRHBmcp/28boHuiD DsKR6g72Ym1PoGysu85XDFXe21GHhvjohrMyElPkN+gcXZeMoS1T9DRdsQVuLpQecFpK 3HyXG6N1eOHI+LMzTW+c1sEKEPqbgPvTGzzQEAxD+2kheQbEz1JWoAnbPGB0fQXXzr4h mGSNKGJTPxLtj86NHtEEbHXu1bfYW65FxzYmTJnfrZjH/GM+PGkbmdshrsn7Snw/U1XS cWig== X-Gm-Message-State: AOPr4FWNTYeuKSyDJafmbAj3qThN2X/Kjh6s1TtAqyqspUKDIFJGRuTft3Hefs4TadX5H9mYEiMA2fRA3I8C+A== MIME-Version: 1.0 X-Received: by 10.202.217.67 with SMTP id q64mr10805323oig.151.1461992056788; Fri, 29 Apr 2016 21:54:16 -0700 (PDT) Received: by 10.202.215.193 with HTTP; Fri, 29 Apr 2016 21:54:15 -0700 (PDT) Received: by 10.202.215.193 with HTTP; Fri, 29 Apr 2016 21:54:15 -0700 (PDT) In-Reply-To: <5723F2AE.2020806@garfieldtech.com> References: <5723F2AE.2020806@garfieldtech.com> Date: Sat, 30 Apr 2016 11:54:15 +0700 Message-ID: To: Larry Garfield Cc: PHP internals Content-Type: multipart/alternative; boundary=001a113cf48c359d240531ac8d8d Subject: Re: [PHP-DEV] Attributes/Annotations Case Study: Drupal From: pierre.php@gmail.com (Pierre Joye) --001a113cf48c359d240531ac8d8d Content-Type: text/plain; charset=UTF-8 Hi Larry, On Apr 30, 2016 6:48 AM, "Larry Garfield" 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? --001a113cf48c359d240531ac8d8d--