Skip to content

Commit 69f718c

Browse files
committed
minor #17995 [FrameworkBundle] enable_annotations is enabled by default (bastnic)
This PR was merged into the 6.2 branch. Discussion ---------- [FrameworkBundle] enable_annotations is enabled by default Not sure at 100% of the use of `FullStack` means [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php#L886), but in a default Symfony app `enable_annotations` seems to be true. ```bash php bin/console config:dump-reference framework ``` ```yaml validation: enabled: true cache: ~ enable_annotations: true # serializer configuration serializer: enabled: true enable_annotations: true ``` cf #12953 Commits ------- a540844 enable_annotations is enabled by default
2 parents 787c341 + a540844 commit 69f718c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/configuration/framework.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2512,7 +2512,7 @@ settings is configured.
25122512
enable_annotations
25132513
..................
25142514

2515-
**type**: ``boolean`` **default**: ``false``
2515+
**type**: ``boolean`` **default**: ``true``
25162516

25172517
If this option is enabled, validation constraints can be defined using annotations or attributes.
25182518

@@ -2720,7 +2720,7 @@ Whether to enable the ``serializer`` service or not in the service container.
27202720
enable_annotations
27212721
..................
27222722

2723-
**type**: ``boolean`` **default**: ``false``
2723+
**type**: ``boolean`` **default**: ``true``
27242724

27252725
If this option is enabled, serialization groups can be defined using annotations or attributes.
27262726

0 commit comments

Comments
 (0)