How to set redirects in the database using symfony?

Need through the admin panel redirects to make the rules
/aboat -> /about
/catalog/item> /item
March 20th 20 at 11:27
1 answer
March 20th 20 at 11:29
Keep the rules of redirects in the database. To create a listener on the event kernel.request in which to make a request to the database to check the path in the table. If necessary, do a redirect
Super. What you need - jakayla.Bauch commented on March 20th 20 at 11:32
@Rowan27, slightly corrected the answer. I think it is better to find a way in the database, rather than pulling the entire list. Especially if it will be big. You and cache, but cache not the whole list, and each path individually - devonte_Labadie commented on March 20th 20 at 11:35
@aaliyah.Mo, thank you. it was important for me to understand how to execute code before the controller - jakayla.Bauch commented on March 20th 20 at 11:38

Find more questions by tags Symfony