How Spotify.com transitioned to Symfony
summary
Spotify.com migrates from a static PHP mess to Symfony 2.3 by incremental substitution: static libraries become proxy legacy static classes that forward to the Symfony service container, assets move to Assetic and Twig templating, and routing uses a root front controller file that checks the filesystem to choose legacy or Symfony handling. The HTTP kernel is overridden to run the firewall and request events for legacy pages, output from executed legacy files is captured by changing directories, and deployments use Debian packages; 6,000 req/s, 11 bundles, three years and far more tests.
AI-written summary · about
