Doctrinebundle: Deprecation warning in Symfony 4.4

Created on 18 Sep 2019  路  3Comments  路  Source: doctrine/DoctrineBundle

In latest Symfony (version 4.4.0-DEV), this bundle is causing the following deprecation warning:

The "Doctrine\Bundle\DoctrineBundle\Registry" class implements "Symfony\Bridge\Doctrine\RegistryInterface" that is deprecated since Symfony 4.4, use Doctrine\Common\Persistence\ManagerRegistry instead.

Most helpful comment

We could add an adhoc rule in DebugClassLoader to skip this deprecation if this is reported too often.

All 3 comments

This is a deprecation that can't be solved without a BC break. It is already fixed in 2.0, which will support Symfony 5. Thanks for bringing this up.

We could add an adhoc rule in DebugClassLoader to skip this deprecation if this is reported too often.

We allow a single deprecation warning in the 4.4 tests to account for this, but if you can exclude this specific error that'd be great!

Was this page helpful?
0 / 5 - 0 ratings