Skip to content

Commit d7717fb

Browse files
Remove mentions of AnnotationLoader
1 parent 18ff87a commit d7717fb

File tree

3 files changed

+0
-89
lines changed

3 files changed

+0
-89
lines changed

_includes/_annotation_loader_tip.rst.inc

-19
This file was deleted.

components/validator/resources.rst

-46
Original file line numberDiff line numberDiff line change
@@ -83,52 +83,6 @@ configure the locations of these files::
8383
:method:`Symfony\\Component\\Validator\\ValidatorBuilder::addXmlMappings`
8484
to configure an array of file paths.
8585

86-
The AnnotationLoader
87-
--------------------
88-
89-
.. deprecated:: 6.4
90-
91-
The :class:`Symfony\\Component\\Validator\\Mapping\\Loader\\AnnotationLoader`
92-
is deprecated since Symfony 6.4, use the
93-
:class:`Symfony\\Component\\Validator\\Mapping\\Loader\\AttributeLoader`
94-
instead.
95-
96-
The component provides an
97-
:class:`Symfony\\Component\\Validator\\Mapping\\Loader\\AnnotationLoader` to get
98-
the metadata from the attributes of the class::
99-
100-
use Symfony\Component\Validator\Constraints as Assert;
101-
// ...
102-
103-
class User
104-
{
105-
#[Assert\NotBlank]
106-
protected string $name;
107-
}
108-
109-
To enable the annotation loader, call the
110-
:method:`Symfony\\Component\\Validator\\ValidatorBuilder::enableAnnotationMapping` method::
111-
112-
use Symfony\Component\Validator\Validation;
113-
114-
$validator = Validation::createValidatorBuilder()
115-
->enableAnnotationMapping()
116-
->getValidator();
117-
118-
To disable the annotation loader after it was enabled, call
119-
:method:`Symfony\\Component\\Validator\\ValidatorBuilder::disableAnnotationMapping`.
120-
121-
.. deprecated:: 6.4
122-
123-
The :method:`Symfony\\Component\\Validator\\ValidatorBuilder::enableAnnotationMapping`
124-
and :method:`Symfony\\Component\\Validator\\ValidatorBuilder::disableAnnotationMapping`
125-
methods are deprecated since Symfony 6.4, use the
126-
:method:`Symfony\\Component\\Validator\\ValidatorBuilder::enableAttributeMapping`
127-
and :method:`Symfony\\Component\\Validator\\ValidatorBuilder::disableAttributeMapping`
128-
methods instead.
129-
130-
.. include:: /_includes/_annotation_loader_tip.rst.inc
131-
13286
The AttributeLoader
13387
-------------------
13488

reference/configuration/framework.rst

-24
Original file line numberDiff line numberDiff line change
@@ -2701,18 +2701,6 @@ settings is configured.
27012701

27022702
.. _reference-validation-enable_annotations:
27032703

2704-
enable_annotations
2705-
..................
2706-
2707-
**type**: ``boolean`` **default**: ``true``
2708-
2709-
If this option is enabled, validation constraints can be defined using annotations or `PHP attributes`_.
2710-
2711-
.. deprecated:: 6.4
2712-
2713-
This option is deprecated since Symfony 6.4, use the ``enable_attributes``
2714-
option instead.
2715-
27162704
enable_attributes
27172705
.................
27182706

@@ -2899,18 +2887,6 @@ Whether to enable the ``serializer`` service or not in the service container.
28992887

29002888
.. _reference-serializer-enable_annotations:
29012889

2902-
enable_annotations
2903-
..................
2904-
2905-
**type**: ``boolean`` **default**: ``true``
2906-
2907-
If this option is enabled, serialization groups can be defined using annotations or attributes.
2908-
2909-
.. deprecated:: 6.4
2910-
2911-
This option is deprecated since Symfony 6.4, use the ``enable_attributes``
2912-
option instead.
2913-
29142890
enable_attributes
29152891
.................
29162892

0 commit comments

Comments
 (0)