I am using the Tree doctrine extension for a category tree and would like to have routes like:
/cat/subcat1/subcat2/subcat3
I can do it defining routes like
/{cat}
/{cat}/{subcat}
/{cat}/{subcat}/{subcat2)
etc...
But is there a more elegant and general way of implementing this? A system that can accept an unlimited number of levels?