Your first custom module: module.json and services

can_ozturk 07.09.2026 10:20 1 yanıt 76 görüntülenme

Create a folder under cp-content/modules, add module.json, then register services in Resources/config/services.yaml. Capability YAML is what shows the module in Studio and AACP.

The Forum module is a good reference: controllers, entities, and a small installer. Enable the module from AACP, then cache:clear before you hunt for a missing route.

tarafından düzenlendi — 07.09.2026 10:20

Hooking an EventSubscriber was the part I missed on the first try. Once the service is autowired, core stays untouched. I can share a minimal “hello widget” module if that helps newcomers.

tarafından düzenlendi — 07.09.2026 10:38