Probably been asked before, but I’m fairly new to Slim (and love it btw).
Coming off Laravel, they made it easier to use a Class::method without calling the full namespace (e.g App\Http\Controllers\Home\HomeController:class)
Is there anyway to modify/add something in Slim so that I can use shorter namespaces in routes?
For example, instead of doing:
I’d like to do:
but, the full namespace would still be like the first example, so the app knows to prefix “App\Http\Controllers” for every route that uses the class path.
I’ve read through the Router documentation, but I can’t seem to see if it’s possible.