I have a service that needs to access the current application base URL (what's returned by app.request.getBaseURL() in Twig views). Currently, my config is like this:
services: WidgetModel: class: AppBundle\Model\WidgetModel scope: prototype arguments: ['%widgets%'] So as a second argument, I would like to inject the base URL. Is it possible? If not, what would be proper solution?