drupal-service-di
CommunityStreamline Drupal service definitions and DI.
AuthorAJV009
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Drupal projects often grapple with scattered service definitions, inconsistent dependency injection, and hard-to-test code. This Skill provides structured patterns and practical examples to standardize service wiring, interface-driven design, and constructor-based injection.
Core Features & Use Cases
- Centralized service definitions with YAML wiring examples for Drupal 10/11.
- Interface-first design and constructor injection practices to improve testability and maintainability.
- Use Case: Create a ContentManager service and a dependent subscriber with proper DI, then swap implementations via interfaces without touching call sites.
Quick Start
Create a module service that defines an interface, a concrete class, and a Drupal service tag wired via YAML, and inject the interface into a block that renders content.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: drupal-service-di Download link: https://github.com/AJV009/drupal-devkit/archive/main.zip#drupal-service-di Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.