How is it going? This is first iteration:
1) create a script that collects all entity <=> repository class map
...use it in following
@rectorphp rules:
2) create a custom rule that flips use of
$this->documentManager->getRepository(Product::class)
for
$this->productRepository
3) create a custom rule that changes non-service repository to service one
4) let
@rectorphp run for 2 mins
5) 545 files changed, 3223 insertions( ), 1908 deletions(-)
I'm reading my manual on "how to upgrade Doctrine repositories to services",
and trying to come up with automated path to do 1-shot 🚀
Have you done such an upgrade? How did you automated it?
tomasvotruba.com/blog/how-to…