KnpLabs/KnpMenuBundle — Issue #102: Translation domain in menu item
Author: zerkalica
Created: 2012-02-14 11:22:09+00:00
State: open

Is it bad to implement translation domain and parameters to MenuItemInterface ?
Item can be configured from controller annotations, easy to pass to twig template:

```
{% extends 'knp_menu.html.twig' %}

{% block label %}{{ item.label | trans(item.translateParameters, item.translateDomain) }}{% endblock label %}
```