title: symfony 3 get base url
body: <p>I want to get top URL in service YAML like this :</p>
  
  <pre><code>app.meal_list_service:
      class: Acme\MealLogBundle\Service\MealListService
      arguments: ['@app.entity_repository_meal',getBaseUrl()"]
  </code></pre>
  
  <p>I cant find a good solution for this. I tried getting the URL from </p>
  
  <p><code>'%router.request_context.scheme%://%router.request_context.host%/'</code> </p>
  
  <p>but this return only first part URL. </p>