Chapter 5. Business Logic
Business logic (also known as the domain logic) is all about the way business wants to handle the data. With this definition, it seems that the Model layer in a Model-View-Controller (MVC) framework could be one of the places to deal with business logic. Forget about MVC because Symfony is more like Request/Response in nature. So, it is your responsibility to create the Model if you need and it is totally up to you how to organize the business logic in your project.
Note
There is a debate about Symfony being an MVC framework. Some developers believe that because entities in Symfony are a data-persistence layer and not a model layer, this makes Symfony a VC framework and not an MVC framework. Sure, you can create Models ...
Get Mastering Symfony now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.