9. Rewrite
Estimations are wrong, the legacy
code is worse than your wildest
imagination, the customer wants
new features, you have to
maintain the current site and
develop the new code base, you
code fast, port the same feature
from the old site to the new one,
import db, deploy, switch…
22. Catch’em all route
/**
* @Route("/{filename}.php")
*/
public function catchEmAllAction($filename)
{
ob_start();
include $filename.”.php”;
$content = ob_get_clean();
$this->doSomeHeadersStuff(headers_list());
return new Response($content);
}