mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 23:26:27 +03:00
* [FrameworkBundle] Add AGENTS.md for AI coding agents * [FrameworkBundle] Point CLAUDE.md at AGENTS.md via @-import * [FrameworkBundle] Add heading to CLAUDE.md * [FrameworkBundle] Apply review feedback to AGENTS.md Split the operational bullets out of Conventions into a new Everyday workflow section, generalise what remains around the best practices page, and replace the stale-training-data note with a concrete list of discovery commands. Keeps three specifics under Conventions: MapRequestPayload over hand-rolled json_decode(), no readonly on a service that may become lazy, and symfony/lock for mutual exclusion. Those are the failure modes the file exists to address, and a general rule does not change a model's behaviour the way naming them does. * [FrameworkBundle] Broaden the attribute and injection guidance Attributes were only shown on controllers. They now cover properties, commands, listeners, message handlers and service declaration. The autowiring bullet also contradicted itself: it sent scalar arguments to an explicit service definition, which is what #[Autowire] exists to avoid. Injection now points at #[Autowire] and #[Target] first, with a YAML definition as the last resort.