Skip to content

Replace annotations with attributes in code examples #16877

Closed
@ker0x

Description

@ker0x

Currently, the documentation is composed of a mix between annotations and attributes in the different code examples.

For example, the Mercure documentation uses Doctrine attributes while the Serializer documentation use Annotations.
Same goes for the Controller documentation and the Mailer documentation with the Route annotation/attribute!

The support for annotation has been recently dropped in the maker bundle for Entities and the Route attribute is already use when generating Controller,

So, in order to be consistent everywhere, wouldn't it be interesting to replace annotations with attributes when possible?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions