You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Handlers (PSR-15) | Process incoming HTTP requests, coordinate application logic/services, and return the HTTP response |`GetUserResourceHandler.php`, `PostUserResourceHandler.php`| Some of the benefits are: separation of concerns, easier testing, clearer intent |
97
97
| Services | Contains the business logic layer that sits between the handlers and repositories | Business rules validation, Data transformation, Cross-cutting concerns | Execution flow: `Handler → Service → Repository → Database`|
98
-
| Repositories | Data access layer using Doctrine ORM | Query building, Entity persistence, Database abstraction | The only component that interacts with the database |
98
+
| Repositories | Data access layer using Doctrine ORM | Query building, Entity persistence, Database abstraction | The only component that interacts with the database |
99
99
| Input Filters | Filter and validate requests using Laminas InputFilter | Login form, contact us form, `$_GET` and `$_POST` values, CLI arguments | Execution flow: `Request → InputFilter → Validation → Handler`|
100
100
| Entities | Represent database tables using Doctrine ORM |`class User { ... }`| Ensure consistency between database and application data |
0 commit comments