I’ve another question with the access of the method.
On the service, I generate a table… the date came from my api, and in this table, I’ve some links.
Actually, I need to write manually the link… (like /users/data/3).
What I would like to do is in my class, create the link with “urlFor”.
But can’t access this method in my “repository”.
Is there a way to get it working ?
To bypass the manual way, I created a route with like this : /users/data[/{id}].
I create the url for this without the ID and then with JS I add the ID at the end of my href.
To do this, you could inject an instance of Slim\Interfaces\RouteParserInterface into your service and generate the URLs with the data you fetched via the repository.