I'm uploading and saving images to the assets folder and I need to get the absolute path. I could have hard coded it but it would be all wrong if I was to deploy the app to a server with different folder structure. So I need the Asset component.
In the twig template, I can call
<img src="{{ asset("assets/img/" ~ image) }}">
and it will all work. But how do I use it in the controller and return only the path?