The Symfony Application Flow¶
When you let Symfony handle each request, life is much easier. Symfony follows the same simple pattern for every request:
Incoming requests are interpreted by the routing and passed to controller
functions that return
Response
objects.Response
object. In other words, the controller is where your code goes: it's where
you interpret the request and create a response.t's that easy! To review:
- Each request executes a front controller file;
- The routing system determines which PHP function should be executed based on information from the request and routing configuration you've created;
- The correct PHP function is executed, where your code creates and returns
the appropriate
Response
object.
No comments:
Post a Comment