symfonyinterfaces-and-autowiring
Master Symfony's Dependency Injection with autowiring, interface binding, service decoration, and tagged services for flexible architecture
When & Why to Use This Skill
This Claude skill empowers developers to master Symfony's Dependency Injection (DI) system, a cornerstone of modern PHP development. It provides expert assistance in implementing autowiring, interface binding, service decoration, and tagged services, ensuring your application architecture remains flexible, decoupled, and maintainable according to industry best practices.
Use Cases
- Interface Binding: Automatically mapping specific service implementations to interfaces to facilitate easy component swapping and improved testability.
- Service Decoration: Implementing the Decorator pattern within the Symfony container to extend or modify service behavior without altering original class logic.
- Tagged Services Management: Organizing and injecting collections of services for complex patterns like Strategy or Chain of Responsibility using Symfony tags.
- Architectural Refactoring: Analyzing existing codebases to transition manual service definitions into modern, attribute-based autowiring configurations.
| name | symfony:interfaces-and-autowiring |
|---|---|
| description | Use when symfony interfaces and autowiring |
symfony:interfaces-and-autowiring (Micro)
Use when
- Use when symfony interfaces and autowiring
Rules
- Keep changes minimal and focused
- Ask before running servers/builds/tests
- Load reference/examples only on explicit request
References
reference.mddocs/complexity-tiers.md