Add a more helpful hint with the "autowiring services based on the types" deprecation message #22969
Labels
Bug
DependencyInjection
DX
DX = Developer eXperience (anything that improves the experience of using Symfony)
Status: Needs Review
Milestone
While first trying to use the new autowiring functionality in 3.3, the following message started popping up:
It tells me:
But the actual solution was to replace the TokenStorage and FormFactory typehints in my controller class constructor with TokenStorageInterface and FormFactoryInterface typehints. Would it be helpful to somehow reflect this in the log message in such cases?
The text was updated successfully, but these errors were encountered: