symfonyinterfaces-and-autowiring

MakFly's avatarfrom MakFly

Master Symfony's Dependency Injection with autowiring, interface binding, service decoration, and tagged services for flexible architecture

⭐26stars🔀4forks📁View on GitHub🕐Updated Dec 30, 2025

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.
namesymfony:interfaces-and-autowiring
descriptionUse 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.md
  • docs/complexity-tiers.md