Doctrine Common
  1. Doctrine Common
  2. DCOM-36

Declare annotation namespaces in the class' doc comment

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Can't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Annotations
    • Labels:
      None

      Description

      I would like to declare my default annotation namespace and namespace aliases in my class' doc comment. This will ensure my class can be understood by the annotation reader regardless of its configuration.

      An example of how I would use this:
      https://gist.github.com/821412

        Activity

        Hide
        Jonathan H. Wage added a comment -

        I don't think implementing this is possible in any easy way.

        Show
        Jonathan H. Wage added a comment - I don't think implementing this is possible in any easy way.
        Hide
        Guilherme Blanco added a comment -

        This cannot be done without adding a lot of WTF factor to Doctrine codebase.

        For individual docblocks there's a simple way, but it is impossible to make they interchange definitions (like declare namespace on class docblock and take advantage of it on method docblock).

        Marking it as can't fix, since our structure cannot support it without a complete rewrite (which would collide with our current interests).

        Show
        Guilherme Blanco added a comment - This cannot be done without adding a lot of WTF factor to Doctrine codebase. For individual docblocks there's a simple way, but it is impossible to make they interchange definitions (like declare namespace on class docblock and take advantage of it on method docblock). Marking it as can't fix, since our structure cannot support it without a complete rewrite (which would collide with our current interests).

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            Kris Wallsmith
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: