Skip to content

[Attributes] Add attributes overview for 6.2 #18014

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

Merged
merged 1 commit into from
Mar 9, 2023
Merged
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
19 changes: 19 additions & 0 deletions reference/attributes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ Contracts
Dependency Injection
~~~~~~~~~~~~~~~~~~~~

* :doc:`AsDecorator </service_container/service_decoration>`
* :ref:`AsTaggedItem <tags_as-tagged-item>`
* :ref:`Autoconfigure <lazy-services_configuration>`
* :ref:`AutoconfigureTag <di-instanceof>`
* :ref:`Autowire <autowire-attribute>`
* :doc:`MapDecorated </service_container/service_decoration>`
* :ref:`TaggedIterator <tags_reference-tagged-services>`
* :ref:`TaggedLocator <service-subscribers-locators_defining-service-locator>`
* :ref:`Target <autowiring-multiple-implementations-same-type>`
Expand All @@ -40,10 +43,17 @@ EventDispatcher

* :ref:`AsEventListener <event-dispatcher_event-listener-attributes>`

FrameworkBundle
~~~~~~~~~~~~~~~

* :ref:`AsRoutingConditionService <routing-matching-expressions>`

HttpKernel
~~~~~~~~~~

* :doc:`AsController </controller/service>`
* :ref:`Cache <http-cache-expiration-intro>`
* :class:`Symfony\\Component\\HttpKernel\\Attribute\\MapDateTime`

Messenger
~~~~~~~~~
Expand All @@ -59,6 +69,7 @@ Security
~~~~~~~~

* :ref:`CurrentUser <security-json-login>`
* :ref:`IsGranted <security-securing-controller-annotations>`

Serializer
~~~~~~~~~~
Expand All @@ -69,9 +80,17 @@ Serializer
* :ref:`Ignore <serializer_ignoring-attributes>`
* :ref:`MaxDepth <serializer_handling-serialization-depth>`
* :ref:`SerializedName <serializer_name-conversion>`
* :ref:`SerializedPath <serializer-enabling-metadata-cache>`

Twig
~~~~

* :ref:`Template <templates-template-attribute>`

Validator
~~~~~~~~~

Each validation constraint comes with a PHP attribute. See
:doc:`/reference/constraints` for a full list of validation constraints.

* :doc:`HasNamedArgument </validation/custom_constraint>`