Skip to content

Latest commit

 

History

History
182 lines (138 loc) · 5.68 KB

File metadata and controls

182 lines (138 loc) · 5.68 KB

Symfony Attributes Overview

Attributes are the successor of annotations since PHP 8. Attributes are native to the language and Symfony takes full advantage of them across the framework and its different components.

Doctrine Bridge

Command

Contracts

Dependency Injection

.. deprecated:: 7.1

    The :class:`Symfony\\Component\\DependencyInjection\\Attribute\\TaggedIterator`
    and :class:`Symfony\\Component\\DependencyInjection\\Attribute\\TaggedLocator`
    attributes were deprecated in Symfony 7.1.

EventDispatcher

FrameworkBundle

HttpKernel

JsonStreamer

Messenger

ObjectMapper

RemoteEvent

Routing

Scheduler

Security

Serializer

Twig

Symfony UX

Validator

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

Workflow