I have a route defined in a symfony2 controller using annotations. EG:
@Route("/{year}", name="show_list_for_user", defaults={ "year" = "2012" })
Is it possible to make make the default year dynamic. Maybe to read the year from a service object?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m afraid that is not possible, the defaults are static.