initial
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
---
|
||||
globs: src/Logic/**/UseCase/*.php, src/Logic/**/DTO/*.php
|
||||
description: Enforces the use of DTOs for UseCase entry points to maintain clean
|
||||
architecture, immutability, and type safety.
|
||||
alwaysApply: true
|
||||
---
|
||||
|
||||
UseCase methods must accept DTOs (Data Transfer Objects) for input parameters instead of raw arrays or Request objects. DTOs must be located in the /src/Logic/[FeatureName]/DTO directory and should be immutable (readonly properties). This ensures decoupling between the Logic and UI layers. Simple primitive inputs (like a single ID) may be passed directly, but complex data structures require DTOs.
|
||||
Reference in New Issue
Block a user