Files
ai-chat/.continue/rules/symfony-74-request-handling.md
2026-06-10 18:22:27 +02:00

552 B

k--- globs: "/UI//Controller.php" description: Ensures compliance with Symfony 7.4 deprecations and enforces strict separation of concerns by isolating Request handling to the UI layer. alwaysApply: true

In Symfony 7.4+, never use the deprecated Request::get() method. Instead, use $request->attributes for route parameters, $request->query for query parameters, and $request->getPayload() for body data (JSON/Forms). Immediately convert request data into DTOs in Controllers. Never pass the Request object to Logic or Data layers.