What should I do, if I want add routing rules from database. Should I use https://github.com/symfony-cmf/ChainRoutingBundle or there is another simpler solution?
Share
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.
Listen to
kernel.requestand use the$request->getPathInfo()to query the database for a route. If you find one, set the_controllerattribute on the request.If you are running the master branch (Symfony 2.1) your listener will need to have a priority greater than 32 so it will run before the router.