Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DCOM-36: Declare annotation namespaces in the class' doc comment #632

Closed
doctrinebot opened this issue Feb 10, 2011 · 3 comments
Closed
Assignees

Comments

@doctrinebot
Copy link

Jira issue originally created by user kriswallsmith:

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

@doctrinebot
Copy link
Author

Comment created by @jwage:

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

@doctrinebot
Copy link
Author

Comment created by @guilhermeblanco:

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).

@doctrinebot
Copy link
Author

Issue was closed with resolution "Can't Fix"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants