DEV Community

Discussion on: Real life comparison of Symfony router and Mezon router

Collapse
 
nicolasgrekas profile image
Nicolas Grekas

you can dump cache.php doing eg:
file_put_contents('cache.php', '<?php return '.var_export($dumper->getCompiledRoutes(), true).';');

then to get the compiled routes:
$compiledRoutes = require 'cache.php';