Your first custom module: module.json and services

Can Öztürk 07.09.2026 10:20 1 replies 76 views

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.

Edited by — 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.

Edited by — 07.09.2026 10:38