From 151415b876b5662333aaaf3f1233d8fa2744c4bd Mon Sep 17 00:00:00 2001 From: Konstantin Myakshin Date: Tue, 30 Jul 2019 20:32:27 +0300 Subject: [PATCH] [DoctrineBridge] Deprecated RegistryInterface --- UPGRADE-4.4.md | 8 ++++++++ UPGRADE-5.0.md | 3 ++- src/Symfony/Bridge/Doctrine/CHANGELOG.md | 1 + src/Symfony/Bridge/Doctrine/RegistryInterface.php | 2 ++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/UPGRADE-4.4.md b/UPGRADE-4.4.md index 93854c80739e9..90c620bd6016e 100644 --- a/UPGRADE-4.4.md +++ b/UPGRADE-4.4.md @@ -63,6 +63,14 @@ DependencyInjection ```php new Definition('%my_class%'); ``` + +DoctrineBridge +-------------- + * Deprecated injecting `ClassMetadataFactory` in `DoctrineExtractor`, an instance of `EntityManagerInterface` should be + injected instead. + * Deprecated passing an `IdReader` to the `DoctrineChoiceLoader` when the query cannot be optimized with single id field. + * Deprecated not passing an `IdReader` to the `DoctrineChoiceLoader` when the query can be optimized with single id field. + * Deprecated `RegistryInterface`, use `Doctrine\Common\Persistence\ManagerRegistry`. Filesystem ---------- diff --git a/UPGRADE-5.0.md b/UPGRADE-5.0.md index 3fcbebac66bb6..a7ac8c430f5c1 100644 --- a/UPGRADE-5.0.md +++ b/UPGRADE-5.0.md @@ -115,10 +115,11 @@ DependencyInjection DoctrineBridge -------------- - * Deprecated injecting `ClassMetadataFactory` in `DoctrineExtractor`, an instance of `EntityManagerInterface` should be + * Removed the possibility to inject `ClassMetadataFactory` in `DoctrineExtractor`, an instance of `EntityManagerInterface` should be injected instead * Passing an `IdReader` to the `DoctrineChoiceLoader` when the query cannot be optimized with single id field will throw an exception, pass `null` instead * Not passing an `IdReader` to the `DoctrineChoiceLoader` when the query can be optimized with single id field will not apply any optimization + * The `RegistryInterface` has been removed. DomCrawler ---------- diff --git a/src/Symfony/Bridge/Doctrine/CHANGELOG.md b/src/Symfony/Bridge/Doctrine/CHANGELOG.md index 7123b527ebc3d..e0b365f4428b9 100644 --- a/src/Symfony/Bridge/Doctrine/CHANGELOG.md +++ b/src/Symfony/Bridge/Doctrine/CHANGELOG.md @@ -5,6 +5,7 @@ CHANGELOG ----- * added `DoctrineClearEntityManagerMiddleware` + * deprecated `RegistryInterface`, use `Doctrine\Common\Persistence\ManagerRegistry` 4.3.0 diff --git a/src/Symfony/Bridge/Doctrine/RegistryInterface.php b/src/Symfony/Bridge/Doctrine/RegistryInterface.php index 6928f8afd4f9c..17ccace1286f6 100644 --- a/src/Symfony/Bridge/Doctrine/RegistryInterface.php +++ b/src/Symfony/Bridge/Doctrine/RegistryInterface.php @@ -17,6 +17,8 @@ /** * References Doctrine connections and entity managers. * + * @deprecated since Symfony 4.4, use Doctrine\Common\Persistence\ManagerRegistry instead + * * @author Fabien Potencier */ interface RegistryInterface extends ManagerRegistryInterface