calendi/.cursor/rules/symfony.mdc
2025-04-26 05:43:35 +02:00

17 lines
552 B
Plaintext

---
description:
globs:
alwaysApply: true
---
# Architecture
The Symfony project is designed in a domain driven design pattern with 3 Main Folders:
- Application: Symfony application Logic (Controllers etc.)
- Domain: Framework agnostic domain logic
- Infrastructure: e.g. Doctrine
# Updating / Creating Entities
When updating or creating entities, always update and the related DTO classes.
DTO Classes are a representation of a JSON Schema
# Code style
You will always write perfect and strict PHP 8.4 code that aligns to phpstan level 10 rules