Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8c069cd

Browse filesBrowse 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
Copy full SHA for 8c069cd

File tree

6 files changed

+32
-0
lines changed
Filter options

6 files changed

+32
-0
lines changed

‎UPGRADE-7.3.md

Copy file name to clipboard
+14Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Serializer/CHANGELOG.md
+5Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Serializer/CacheWarmer/CompiledClassMetadataCacheWarmer.php
+4Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Serializer/Mapping/Factory/CompiledClassMetadataFactory.php
+4Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Serializer/Tests/CacheWarmer/CompiledClassMetadataCacheWarmerTest.php
+3Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Serializer/Tests/Mapping/Factory/CompiledClassMetadataFactoryTest.php
+2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.