In my opinion, the dependency on FOSJsRouting is not really necessary and can be avoided with this tiny workaround.
Of course there is a trade-off between those two solutions, but I think the dependency is not worth the little comfort, especially when some people won't even use the .js-file and might embed the javascript directly into the template.
In my opinion, the dependency on FOSJsRouting is not really necessary and can be avoided with this tiny workaround.
Of course there is a trade-off between those two solutions, but I think the dependency is not worth the little comfort, especially when some people won't even use the .js-file and might embed the javascript directly into the template.