I don't get the difference between Dynamic Router and Chain Router in Symfony2 CMF. I could see that there is a difference in syntax, but I don't get concept.
Can someone tell me the difference conceptually?
The ChainRouter is used to chain multiple routers. If router1 can't match a route to the current path, it'll go to router2 and checks if that one can match the route. If nothing matches, it'll throw an 404 not found exception.
Please note that the ChainRouter isn't capable of matching routes. It must have routers which do that.
The DynamicRouter is a router. It matches paths to routes. Instead of the Symfony2 Router, it's dynamic. It'll use RouteProvider to get the routes and match them against the path.