add an annotation to set simple scalar defaults in the route generation #334

lsmith77 opened this Issue Dec 4, 2012 · 1 comment

1 participant

FriendsOfSymfony member

f.e. set _format and _locale defaults for routes. this should be a class/method annotation

FriendsOfSymfony member

actually maybe the defaults could be set in the route definition?

not sure if something like the following could be supported:

    type:     rest
    prefix:   liip/hello/rest
    defaults: [_format: json]
@lsmith77 lsmith77 added this to the 2.0 milestone Jul 10, 2015
@lsmith77 lsmith77 modified the milestone: 2.0 Nov 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment