Symfony2 Accessing route variables
===

I know I can access current route name by `$request->get('_route');` - my question is, if, for example, my route is defined this way:

`@Route("/get_by_category/{id}", defaults={"id" = 0}, name="get_products_by_category")`

How can I retrieve the `id` variable from within controller or service?