Closed
Description
Thanks to the features of php 7.0 we can now guess the class of a service created with a factory:
function myFactory(): MyServiceClass
{
}
So I propose to create a new pass to automatically update the services definition when possible. This is particularly useful for autowiring (this way you don't have to copy-paste the class name of the service, especially when this is from a third party library).
What do you think ?
An implementation could be this.