8000 feature #32817 [DoctrineBridge] Deprecate RegistryInterface (Koc) · symfony/symfony@bb74384 · GitHub
[go: up one dir, main page]

Skip to content

Commit bb74384

Browse files
committed
feature #32817 [DoctrineBridge] Deprecate RegistryInterface (Koc)
This PR was merged into the 4.4 branch. Discussion ---------- [DoctrineBridge] Deprecate RegistryInterface | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yno | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | #32394 | License | MIT | Doc PR | - Commits ------- 151415b [DoctrineBridge] Deprecated RegistryInterface
2 parents 861f792 + 151415b commit bb74384

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

UPGRADE-4.4.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ DependencyInjection
6363
```php
6464
new Definition('%my_class%');
6565
```
66+
67+
DoctrineBridge
68+
--------------
69+
* Deprecated injecting `ClassMetadataFactory` in `DoctrineExtractor`, an instance of `EntityManagerInterfac 8000 e` should be
70+
injected instead.
71+
* Deprecated passing an `IdReader` to the `DoctrineChoiceLoader` when the query cannot be optimized with single id field.
72+
* Deprecated not passing an `IdReader` to the `DoctrineChoiceLoader` when the query can be optimized with single id field.
73+
* Deprecated `RegistryInterface`, use `Doctrine\Common\Persistence\ManagerRegistry`.
6674

6775
Filesystem
6876
----------

UPGRADE-5.0.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,11 @@ DependencyInjection
115115
DoctrineBridge
116116
--------------
117117

118-
* Deprecated injecting `ClassMetadataFactory` in `DoctrineExtractor`, an instance of `EntityManagerInterface` should be
118+
* Removed the possibility to inject `ClassMetadataFactory` in `DoctrineExtractor`, an instance of `EntityManagerInterface` should be
119119
injected instead
120120
* Passing an `IdReader` to the `DoctrineChoiceLoader` when the query cannot be optimized with single id field will throw an exception, pass `null` instead
121121
* Not passing an `IdReader` to the `DoctrineChoiceLoader` when the query can be optimized with single id field will not apply any optimization
122+
* The `RegistryInterface` has been removed.
122123

123124
DomCrawler
124125
----------

src/Symfony/Bridge/Doctrine/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CHANGELOG
55
-----
66

77
* added `DoctrineClearEntityManagerMiddleware`
8+
* deprecated `RegistryInterface`, use `Doctrine\Common\Persistence\ManagerRegistry`
89

910

1011
4.3.0

src/Symfony/Bridge/Doctrine/RegistryInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
/**
1818
* References Doctrine connections and entity managers.
1919
*
20+
* @deprecated since Symfony 4.4, use Doctrine\Common\Persistence\ManagerRegistry instead
21+
*
2022
* @author Fabien Potencier <fabien@symfony.com>
2123
*/
2224
interface RegistryInterface extends ManagerRegistryInterface

0 commit comments

Comments
 (0)
0