Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 61eea9c

Browse files
[ProxyManagerBridge] Deprecate the package
1 parent 6c8f6b3 commit 61eea9c

File tree

9 files changed

+25
-4
lines changed

9 files changed

+25
-4
lines changed

src/Symfony/Bridge/Doctrine/composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,13 @@
2828
"symfony/stopwatch": "^5.4|^6.0",
2929
"symfony/cache": "^5.4|^6.0",
3030
"symfony/config": "^5.4|^6.0",
31-
"symfony/dependency-injection": "^5.4|^6.0",
31+
"symfony/dependency-injection": "^6.2",
3232
"symfony/form": "^5.4.9|^6.0.9",
3333
"symfony/http-kernel": "^6.2",
3434
"symfony/messenger": "^5.4|^6.0",
3535
"symfony/doctrine-messenger": "^5.4|^6.0",
3636
"symfony/property-access": "^5.4|^6.0",
3737
"symfony/property-info": "^5.4|^6.0",
38-
"symfony/proxy-manager-bridge": "^5.4|^6.0",
3938
"symfony/security-core": "^6.0",
4039
"symfony/expression-language": "^5.4|^6.0",
4140
"symfony/uid": "^5.4|^6.0",
@@ -55,7 +54,7 @@
5554
"doctrine/orm": "<2.7.4",
5655
"phpunit/phpunit": "<5.4.3",
5756
"symfony/cache": "<5.4",
58-
"symfony/dependency-injection": "<5.4",
57+
"symfony/dependency-injection": "<6.2",
5958
"symfony/form": "<5.4",
6059
"symfony/http-kernel": "<6.2",
6160
"symfony/messenger": "<5.4",

src/Symfony/Bridge/ProxyManager/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+
6.3
5+
---
6+
7+
* Deprecate the bridge
8+
49
4.2.0
510
-----
611

src/Symfony/Bridge/ProxyManager/LazyProxy/Instantiator/RuntimeInstantiator.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,14 @@
2121
use Symfony\Component\DependencyInjection\Definition;
2222
use Symfony\Component\DependencyInjection\LazyProxy\Instantiator\InstantiatorInterface;
2323

24+
trigger_deprecation('symfony/proxy-manager-bridge', '6.3', 'The "symfony/proxy-manager-bridge" package is deprecated and can be removed from your dependencies.');
25+
2426
/**
2527
* Runtime lazy loading proxy generator.
2628
*
2729
* @author Marco Pivetta <[email protected]>
30+
*
31+
* @deprecated since Symfony 6.3
2832
*/
2933
class RuntimeInstantiator implements InstantiatorInterface
3034
{

src/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/ProxyDumper.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,15 @@
1717
use Symfony\Component\DependencyInjection\Definition;
1818
use Symfony\Component\DependencyInjection\LazyProxy\PhpDumper\DumperInterface;
1919

20+
trigger_deprecation('symfony/proxy-manager-bridge', '6.3', 'The "symfony/proxy-manager-bridge" package is deprecated and can be removed from your dependencies.');
21+
2022
/**
2123
* Generates dumped PHP code of proxies via reflection.
2224
*
2325
* @author Marco Pivetta <[email protected]>
2426
*
27+
* @deprecated since Symfony 6.3
28+
*
2529
* @final
2630
*/
2731
class ProxyDumper implements DumperInterface

src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/ContainerBuilderTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
* with the ProxyManager bridge.
2525
*
2626
* @author Marco Pivetta <[email protected]>
27+
*
28+
* @group legacy
2729
*/
2830
class ContainerBuilderTest extends TestCase
2931
{

src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Dumper/PhpDumperTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
* with the ProxyManager bridge.
2323
*
2424
* @author Marco Pivetta <[email protected]>
25+
*
26+
* @group legacy
2527
*/
2628
class PhpDumperTest extends TestCase
2729
{

src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Instantiator/RuntimeInstantiatorTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
* Tests for {@see \Symfony\Bridge\ProxyManager\LazyProxy\Instantiator\RuntimeInstantiator}.
2323
*
2424
* @author Marco Pivetta <[email protected]>
25+
*
26+
* @group legacy
2527
*/
2628
class RuntimeInstantiatorTest extends TestCase
2729
{

src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
* Tests for {@see \Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\ProxyDumper}.
2121
*
2222
* @author Marco Pivetta <[email protected]>
23+
*
24+
* @group legacy
2325
*/
2426
class ProxyDumperTest extends TestCase
2527
{

src/Symfony/Bridge/ProxyManager/composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"require": {
1919
"php": ">=8.1",
2020
"friendsofphp/proxy-manager-lts": "^1.0.2",
21-
"symfony/dependency-injection": "^6.2"
21+
"symfony/dependency-injection": "^6.2",
22+
"symfony/deprecation-contracts": "^2.1|^3"
2223
},
2324
"require-dev": {
2425
"symfony/config": "^6.1"

0 commit comments

Comments
 (0)