Closed
Description
Hi
According to https://github.com/symfony/symfony/blob/6.0/UPGRADE-6.0.md, getDoctrine()
is being deprecated
I have a lot of code $em = $this->getDoctrine()->getManager();
in my controllers, I would like to know if there is, or how to add, a rule to swap from this code to EntityManagerInterface $entityManager
constructor injection or controller action injection
thank you
Metadata
Metadata
Assignees
Labels
No labels