symfony/symfony — pull request #3416 by COil (2012-02-22 20:56:22+00:00)
Title: Added a getBaseUri() function in Request 

Here is a use case for this little PR. I wanted to have the full URL for an image related to an object (relative URL is stored into the 'webPath' property of the 'job' object)

```jinja

```

This twig code is quiet complicated just to retrieve the base URi... so with the PR the code turns into:

```jinja

```

Which is far more compact. Additional unit tests are included.

COil.