feat(dx): additional log to help locate a potential missing provider
| Q | A |
|---|---|
| Branch? | main |
| Tickets | Closes #6335 |
| License | MIT |
Just adding a simple log to avoid completely hiding the fact that there was a ProviderNotFoundException behind a NotFoundHttpException. It could help save time for devs who simply forgot to implement the provider.
Am I missing something? I only added 3 lines to a file, what's the conflict here? :D
@mrossard the conflict is in use. You need to rebase.
@mrossard the conflict is in
use. You need to rebase.
oh, cool, i'm just dumb then. :D I was sure i had pulled the changes before creating the branch, sorry.
I'll try to look at how it can be added in the profiler/ web debug toolbar too, that's a great point.
(The profiler part can be done in another PR, this one LGTM).
I rebased it and added the logger to the api_platform.state_provider.read service definition on the symfony config side. Not sure if there's something similar to do for laravel...?