Chapter 6. Inside the Controller Layer
In symfony, the controller layer, which contains the code linking the business logic and the presentation, is split into several components that you use for different purposes:
The front controller is the unique entry point to the application. It loads the configuration and determines the action to execute.
Actions contain the applicative logic. They check the integrity of the request and prepare the data needed by the presentation layer.
The request, response, and session objects give access to the request parameters, the response headers, and the persistent user data. They are used very often in the controller layer.
Filters are portions of code executed for every request, before or after the action. For example, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access