I have a lot of custom routes,and many many routes files.
So,my question is How to cache all routes to one file?
If the router cache file exist,that will be load and set to the DI?How to do?
Now ,i hava get all routes form code
$di->get('route')->getRoutes(),but i dont kown how to set to the di?