Use custom keys in Routing files symfony
Is there anyway to add custom key/value pairs in the Routing file of a Symfony2 project and then read it in the controller?

For example:

    AcmeDemoBundle_Default_hello:
        pattern:  /hello/{name}
        defaults: { _controller: AcmeDemoBundle:Default:hello }
        SomeCustomKey: CustomValue


I want to use these key/value pairs to add some dynamic behavior to one of my projects. For example, I can read all the routes with a custom key/value pair and show them to the user, to be used in dynamic menus.

Use custom keys in Routing files symfony
===

Is there anyway to add custom key/value pairs in the Routing file of a Symfony2 project and then read it in the controller?

For example:

    AcmeDemoBundle_Default_hello:
        pattern:  /hello/{name}
        defaults: { _controller: AcmeDemoBundle:Default:hello }
        SomeCustomKey: CustomValue


I want to use these key/value pairs to add some dynamic behavior to one of my projects. For example, I can read all the routes with a custom key/value pair and show them to the user, to be used in dynamic menus.
