Skip to content

Add annotation to glossary (rebased) #6230

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

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ Glossary
Symfony's configuration files. See the :doc:`/components/yaml/introduction`
chapter.

Annotation
Annotations are metadata written alongside your code. They can either be explanatory and will be
ignored during execution or add functionality to the line of code directly below as a means of
configuration. For example, the annotation ``@var`` describes the type of a variable, whereas in
Symfony2 ``@Assert`` can add validation to a member variable of a class (see :doc:`/book/validation` chapter).

.. _`service-oriented architecture`: https://wikipedia.org/wiki/Service-oriented_architecture
.. _`HTTP Wikipedia`: https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol
Expand Down