---
title: "Task: Modules announce changes as messages of their contract"
manual: "adsum by web-vision"
version: "main"
permalink: "https://docs.typo3.org/permalink/web-vision/adsum-monorepo:task-1791628540@main"
source: "Changelog/1.0.0/Task-1791628540-ModulesAnnounceChangesAsMessagesOfTheirContract.rst"
rendered: "2026-11-07T02:01:32+00:00"
---

# Task: Modules announce changes as messages of their contract {#task-1791628540}

## Description {#description}

What the modules announce to each other after a change, such as an approved leave request or a person leaving, are
messages of the module's contract: the classes live in `<Module>\Contract\Message` and travel on the bus
`message.bus`, published through `MessagePublisher` after the command's transaction committed. They were domain
events in `Domain\Event` on the bus `event.bus` before.

## Impact {#impact}

A package handling messages of adsum imports them from `Contract\Message` and registers its handlers with
`#[AsMessageHandler(bus: 'message.bus')]`. Messages still waiting in a queue under their old class names cannot be
read after the update; let the workers empty the queues before updating.
