Align createRoute signature with Symfony route class
Fixes previous implementations that relied on passing a string to route generations.
Fixes: #3608776
Fixes previous implementations that relied on passing a string to route generations.
Fixes: #3608776