From shopware-core
Dependency Injection in Shopware-6-Plugins: services.xml registrieren, Autowiring, Argument-Binding, Service laden in der Plugin-Bundle-Struktur (Resources/config/services.xml). Trigger: "services.xml", "Service registrieren", "dependency injection", "Autowiring", "service argument", "Konstruktor-Injektion", "DI container shopware". Shopware 6.7.
How this skill is triggered — by the user, by Claude, or both
Slash command
/shopware-core:sw-dependency-injectionThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Services werden in `src/Resources/config/services.xml` registriert (Symfony DI). Shopware lädt sie automatisch,
Services werden in src/Resources/config/services.xml registriert (Symfony DI). Shopware lädt sie automatisch,
wenn die Plugin-Klasse die Standard-build()-Konvention nutzt bzw. der Pfad in getServicesFilePath() liegt.
<service id="FfContentPlus\Service\MyService">
<argument type="service" id="Doctrine\DBAL\Connection"/>
<argument type="service" id="product.repository"/>
</service>
DAL-Repositories heißen {entity}.repository (z.B. product.repository). Constructor Property Promotion bevorzugen.
Tagged Services / Service-Locator: sw-service-tags. Bestehende Services anpassen: sw-service-decoration.
→ Autowiring, public/private, Compiler-Pass, Beispiele: references/di.md → Leeres Gerüst: examples/services.xml
npx claudepluginhub zone1987/claude-a-dev-team --plugin shopware-coreCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.