newly created classes are not being registered
I am implementing a new API endpoint and I created a controller to reflect it. I also created a new controller for a new route that I'm working on.
The problem I am facing is that my newly created classes are not being registered and I'm getting errors saying "X Class is not found". However if I edit files and classes that were already present, I don't face any issues.
Is there a different build command issued to newly created classes and php files?