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

Make doctrine/annotations an optional dependency #8787

Merged
merged 1 commit into from
Jun 27, 2021

Conversation

greg0ire
Copy link
Member

@greg0ire greg0ire commented Jun 25, 2021

First, there are other drivers than the annotations-based one, and
second, one of them is base on attributes, which are basically
annotations native to PHP.

Closes #8785

Copy link
Member

@SenseException SenseException left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a .. note:: at the top of docs/en/reference/annotations-reference.rst with the optional dependency information would help.

reasons. Note that ``doctrine/annotations`` is not require by Doctrine
ORM, and you will need to require that package if you want to use
annotations. Doctrine ORM docblock annotations support namespaces and
nested annotations among other things. The Doctrine ORM ORM defines its
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
nested annotations among other things. The Doctrine ORM ORM defines its
nested annotations among other things. The Doctrine ORM defines its

First, there are other drivers than the annotations-based one, and
second, one of them is base on attributes, which are basically
annotations native to PHP.

Closes doctrine#8785
@greg0ire greg0ire force-pushed the optional-doctrine-annotations branch from 9665a68 to fa583f6 Compare June 26, 2021 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants