You should refer to existing `router.class` parameter:

```yaml
ezpublish_rest.template_router.class: %router.class%
```