I’m busy implementing a command via console.
However, I would need to generate a URL via RouteContext.
The problem is that I have to give “$request” as a parameter, which I don’t have via the command.
Do you have any idea how I can generate/recover it?
This depends on the installed PSR-7 package. It would be helpful, if you could provide for information / details. If you have access to the Slim App instance, you could use that without a request object.
Yes, that’s what I imagined.
But I misspoke, is there an advantage to using Nyholm rather than Slim?
Refactoring doesn’t bother me, I’m starting a project.