With the command $this->generateUrl($route); inside a Controller I can get the URL of the Route.
However, I only want to retrieve the last part of it (as specified in routing.yml).
For example, instead of /web/app_dev.php/$path I just want to return /$path
How can I achieve this?