Warning
Markdown on construction
Also known as Ports & Adapters, is characterized by two main principles:
- The separation between business code and technical code (making the business code agnostic of the technical architecture),
- Dependency inversion: the technical code depends on the business code and not the other way around, particularly through the use of the adapter design pattern.
We have a layered architecture representing the different parts of a Symfony application:
- Domain: The core business of the code.
- Application: Application code, commands, queries with interfaces for isolation.
- Infrastructure: Implementation of the adapters described in the interfaces of the lower layers and the services necessary to communicate with the infrastructure.
Note
See : Hexagonal Architecture for more information.