sonata-project/SonataCoreBundle — pull request #19 by eko (2013-12-19 11:30:39+00:00)
Title: Allows to override domain translation when including in template

I've keeped the domain parameter when including because in some cases, we need to override the translation specified in configuration.

For example, in `sonata-project/ecommerce`:

We have the following code in view `SonataCustomerBundle:Addresses:list.html.twig`:

```php
{% for success in app.session.flashBag.get('success') %}

{{ success|trans({}, 'SonataCustomerBundle') }}

{% endfor %}
```

Here, a flash message is set with key `success` and we have to specify that in this template that the message must be translated from `SonataCustomerBundle`.

So we have to do:

```php
{% include 'SonataCoreBundle:FlashMessage:render.html.twig' with {domain: 'SonataCustomerBundle'} %}
```