KnpLabs/KnpMenuBundle — pull request #120 by matteosister (2012-06-19 11:01:08+00:00)
Title: charset as first argument

AFAIK this DI configuration is wrong. It shows an error in SonataMediaBundle when you try to edit a media.
The problem is that the Renderer class constructor (parent of ListRenderer) is

```
/**
* @param string $charset
* @param boolean $renderCompressed
*/
public function __construct($charset = null, $renderCompressed = false)
```

so, giving this DIC configuration you got array() as charset. And it throws an error like:

```
An exception has been thrown during the rendering of a template ("Warning: htmlspecialchars() [function.htmlspecialchars]: charset `Array' not supported, assuming
iso-8859-1
```

The only thing I don't know is where the %knp_menu.renderer.list.options% parameter should be injected. But at least removing it solves the problem. Is this parameter still needed?

Regards.