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