mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 15:16:30 +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.
37 lines
916 B
JSON
37 lines
916 B
JSON
{
|
|
"bundles": {
|
|
"Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle": ["all"]
|
|
},
|
|
"copy-from-recipe": {
|
|
"config/": "%CONFIG_DIR%/",
|
|
"public/": "%PUBLIC_DIR%/",
|
|
"src/": "%SRC_DIR%/",
|
|
".editorconfig": ".editorconfig",
|
|
"AGENTS.md": "AGENTS.md",
|
|
"CLAUDE.md": "CLAUDE.md"
|
|
},
|
|
"composer-scripts": {
|
|
"cache:clear": "symfony-cmd",
|
|
"assets:install %PUBLIC_DIR%": "symfony-cmd"
|
|
},
|
|
"env": {
|
|
"APP_ENV": "dev",
|
|
"APP_SECRET": "",
|
|
"APP_SHARE_DIR": "%VAR_DIR%/share"
|
|
},
|
|
"dotenv": {
|
|
"dev": {
|
|
"APP_SECRET": "%generate(secret)%"
|
|
}
|
|
},
|
|
"gitignore": [
|
|
"/.env.local",
|
|
"/.env.local.php",
|
|
"/.env.*.local",
|
|
"/%CONFIG_DIR%/secrets/prod/prod.decrypt.private.php",
|
|
"/%PUBLIC_DIR%/bundles/",
|
|
"/%VAR_DIR%/",
|
|
"/vendor/"
|
|
]
|
|
}
|