The love story between Symfony and HTTP

Photo by Dương Trần Quốc on Unsplash

Foundation, Kernel and Client

Photo by John Doe on Unsplash
  • A request arrives ;
  • The controller containing the route to process the request has been found ;
  • The arguments of the controller have been resolved (extracting data from the URL, services injection, etc.) ;
  • The controller didn’t return a Response instance (from HttpFoundation’s model!) and further processing is necessary to complete the response ;
  • Just before the response is considered fully generated, if you need to modify it at last moment ;
  • The response is completely generated ;
  • The response is sent back to the client ;
  • An uncaught exception is thrown during request processing.
Photo by Richy Great on Unsplash



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store