In Symfony >= 4.4, this PR will fix warning deprecation message:
The "Doctrine\Bundle\DoctrineBundle\Registry" class implements "Symfony\Bridge\Doctrine\RegistryInterface" that is deprecated since Symfony 4.4, use Doctrine\Persistence\ManagerRegistry instead.
In Symfony >= 4.4, this PR will fix warning deprecation message: