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 ...
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