This does not work. References cannot use a parameter.

What you need to do is create an alias ``fos_js_routing.router`` in the DI extension rather than a parameter and use it for the reference

when creating the alias, please make it private btw