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
-------

151415b876 [DoctrineBridge] Deprecated RegistryInterface
This commit is contained in:
Tobias Schultze 2019-08-01 20:52:08 +02:00
commit bb74384236
4 changed files with 13 additions and 1 deletions

View File

@ -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
----------

View File

@ -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
----------

View File

@ -5,6 +5,7 @@ CHANGELOG
-----
* added `DoctrineClearEntityManagerMiddleware`
* deprecated `RegistryInterface`, use `Doctrine\Common\Persistence\ManagerRegistry`
4.3.0

View File

@ -17,6 +17,8 @@ use Doctrine\ORM\EntityManager;
/**
* References Doctrine connections and entity managers.
*
* @deprecated since Symfony 4.4, use Doctrine\Common\Persistence\ManagerRegistry instead
*
* @author Fabien Potencier <fabien@symfony.com>
*/
interface RegistryInterface extends ManagerRegistryInterface