8000 [Serializer] Marking some Normalizer classes as final · tucksaun/symfony@6e733e8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6e733e8

Browse files
committed
[Serializer] Marking some Normalizer classes as final
| Q | A | ------------- | --- | Branch? | 6.3 for features | Bug fix? | no | New feature? | no | Deprecations? | yes | Tickets | symfony#49291 (review) | License | MIT | Doc PR | n/a As mentioned in symfony#49291 (review).
1 parent a08ccfc commit 6e733e8

11 files changed

+31
-0
lines changed

src/Symfony/Component/Serializer/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ CHANGELOG
99
* Add method `getSupportedTypes(?string $format)` to `NormalizerInterface` and `DenormalizerInterface`
1010
* Deprecate `MissingConstructorArgumentsException` in favor of `MissingConstructorArgumentException`
1111
* Deprecate `CacheableSupportsMethodInterface` in favor of the new `getSupportedTypes(?string $format)` methods
12+
* The following Normalizer classes will become final in 7.0:
13+
* `ConstraintViolationListNormalizer`
14+
* `CustomNormalizer`
15+
* `DataUriNormalizer`
16+
* `DateIntervalNormalizer`
17+
* `DateTimeNormalizer`
18+
* `DateTimeZoneNormalizer`
19+
* `GetSetMethodNormalizer`
20+
* `JsonSerializableNormalizer`
21+
* `ObjectNormalizer`
22+
* `PropertyNormalizer`
1223

1324
6.2
1425
---

src/Symfony/Component/Serializer/Normalizer/ConstraintViolationListNormalizer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
*
2222
* @author Grégoire Pineau <lyrixx@lyrixx.info>
2323
* @author Kévin Dunglas <dunglas@gmail.com>
24+
*
25+
* @final since Symfony 6.3
2426
*/
2527
class ConstraintViolationListNormalizer implements NormalizerInterface, CacheableSupportsMethodInterface
2628
{

src/Symfony/Component/Serializer/Normalizer/CustomNormalizer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
/**
1818
* @author Jordi Boggiano <j.boggiano@seld.be>
19+
*
20+
* @final since Symfony 6.3
1921
*/
2022
class CustomNormalizer implements NormalizerInterface, DenormalizerInterface, SerializerAwareInterface, CacheableSupportsMethodInterface
2123
{

src/Symfony/Component/Serializer/Normalizer/DataUriNormalizer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
* Denormalizes a data URI to a {@see \SplFileObject} object.
2323
*
2424
* @author Kévin Dunglas <dunglas@gmail.com>
25+
*
26+
* @final since Symfony 6.3
2527
*/
2628
class DataUriNormalizer implements NormalizerInterface, DenormalizerInterface, CacheableSupportsMethodInterface
2729
{

src/Symfony/Component/Serializer/Normalizer/DateIntervalNormalizer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* Denormalizes an interval string to an instance of {@see \DateInterval}.
2020
*
2121
* @author Jérôme Parmentier <jerome@prmntr.me>
22+
*
23+
* @final since Symfony 6.3
2224
*/
2325
class DateIntervalNormalizer implements NormalizerInterface, DenormalizerInterface, CacheableSupportsMethodInterface
2426
{

src/Symfony/Component/Serializer/Normalizer/DateTimeNormalizer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
* Denormalizes a date string to an instance of {@see \DateTime} or {@see \DateTimeImmutable}.
2121
*
2222
* @author Kévin Dunglas <dunglas@gmail.com>
23+
*
24+
* @final since Symfony 6.3
2325
*/
2426
class DateTimeNormalizer implements NormalizerInterface, DenormalizerInterface, CacheableSupportsMethodInterface
2527
{

src/Symfony/Component/Serializer/Normalizer/DateTimeZoneNormalizer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* Normalizes a {@see \DateTimeZone} object to a timezone string.
2020
*
2121
* @author Jérôme Desjardins <jewome62@gmail.com>
22+
*
23+
* @final since Symfony 6.3
2224
*/
2325
class DateTimeZoneNormalizer implements NormalizerInterface, DenormalizerInterface, CacheableSupportsMethodInterface
2426
{

src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
*
3232
* @author Nils Adermann <naderman@naderman.de>
3333
* @author Kévin Dunglas <dunglas@gmail.com>
34+
*
35+
* @final since Symfony 6.3
3436
*/
3537
class GetSetMethodNormalizer extends AbstractObjectNormalizer
3638
{

src/Symfony/Component/Serializer/Normalizer/JsonSerializableNormalizer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
* A normalizer that uses an objects own JsonSerializable implementation.
1919
*
2020
* @author Fred Cox <mcfedr@gmail.com>
21+
*
22+
* @final since Symfony 6.3
2123
*/
2224
class JsonSerializableNormalizer extends AbstractNormalizer
2325
{

src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
* Converts between objects and arrays using the PropertyAccess component.
2626
*
2727
* @author Kévin Dunglas <dunglas@gmail.com>
28+
*
29+
* @final since Symfony 6.3
2830
*/
2931
class ObjectNormalizer extends AbstractObjectNormalizer
3032
{

0 commit comments

Comments
 (0)
0