8000 feature #59286 [Serializer] Deprecate the `CompiledClassMetadataFacto… · symfony/symfony@8c069cd · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit 8c069cd

Browse files
committed
feature #59286 [Serializer] Deprecate the CompiledClassMetadataFactory (mtarld)
This PR was merged into the 7.3 branch. Discussion ---------- [Serializer] Deprecate the `CompiledClassMetadataFactory` | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | no | New feature? | yes | Deprecations? | yes | Issues | Fix #57552 | License | MIT Deprecate the `CompiledClassMetadataFactory` and `CompiledClassMetadataCacheWarmer` classes as they're not used in the codebase and not meant to be used in the future (see #57552). Commits ------- caea3f6 [Serializer] Deprecate the `CompiledClassMetadataFactory`
2 parents a36b981 + caea3f6 commit 8c069cd

File tree

6 files changed

+32
-0
lines changed

6 files changed

+32
-0
lines changed

UPGRADE-7.3.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
UPGRADE FROM 7.2 to 7.3
2+
=======================
3+
4+
Symfony 7.3 is a minor release. According to the Symfony release process, there should be no significant
5+
backward compatibility breaks. Minor backward compatibility breaks are prefixed in this document with
6+
`[BC BREAK]`, make sure your code is compatible with these entries before upgrading.
7+
Read more about this in the [Symfony documentation](https://symfony.com/doc/7.3/setup/upgrade_minor.html).
8+
9+
If you're upgrading from a version below 7.1, follow the [7.2 upgrade guide](UPGRADE-7.2.md) first.
10+
11+
Serializer
12+
----------
13+
14+
* Deprecate the `CompiledClassMetadataFactory` and `CompiledClassMetadataCacheWarmer` classes

src/Symfony/Component/Serializer/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
7.3
5+
---
6+
7+
* Deprecate the `CompiledClassMetadataFactory` and `CompiledClassMetadataCacheWarmer` classes
8+
49
7.2
510
---
611

src/Symfony/Component/Serializer/CacheWarmer/CompiledClassMetadataCacheWarmer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@
1616
use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryCompiler;
1717
use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface;
1818

19+
trigger_deprecation('symfony/serializer', '7.3', 'The "%s" class is deprecated.', CompiledClassMetadataCacheWarmer::class);
20+
1921
/**
2022
* @author Fabien Bourigault <bourigaultfabien@gmail.com>
23+
*
24+
* @deprecated since Symfony 7.3
2125
*/
2226
final class CompiledClassMetadataCacheWarmer implements CacheWarmerInterface
2327
{

src/Symfony/Component/Serializer/Mapping/Factory/CompiledClassMetadataFactory.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@
1616
use Symfony\Component\Serializer\Mapping\ClassMetadata;
1717
use Symfony\Component\Serializer\Mapping\ClassMetadataInterface;
1818

19+
trigger_deprecation('symfony/serializer', '7.3', 'The "%s" class is deprecated.', CompiledClassMetadataFactory::class);
20+
1921
/**
2022
* @author Fabien Bourigault <bourigaultfabien@gmail.com>
23+
*
24+
* @deprecated since Symfony 7.3
2125
*/
2226
final class CompiledClassMetadataFactory implements ClassMetadataFactoryInterface
2327
{

src/Symfony/Component/Serializer/Tests/CacheWarmer/CompiledClassMetadataCacheWarmerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryCompiler;
1919
use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface;
2020

21+
/**
22+
* @group legacy
23+
*/
2124
final class CompiledClassMetadataCacheWarmerTest extends TestCase
2225
{
2326
public function testItImplementsCacheWarmerInterface()

src/Symfony/Component/Serializer/Tests/Mapping/Factory/CompiledClassMetadataFactoryTest.php

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

2222
/**
2323
* @author Fabien Bourigault <bourigaultfabien@gmail.com>
24+
*
25+
* @group legacy
2426
*/
2527
final class CompiledClassMetadataFactoryTest extends TestCase
2628
{

0 commit comments

Comments
 (0)
0