From 6c5bdb094248dd808d2aec1e2f19d9cb52724eac Mon Sep 17 00:00:00 2001 From: Malte Janz Date: Fri, 19 Dec 2025 16:06:23 +0100 Subject: [PATCH] fix: add-data-to-mails.md by adding content about registering event subscriber --- .../plugins/content/mail/add-data-to-mails.md | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/guides/plugins/plugins/content/mail/add-data-to-mails.md b/guides/plugins/plugins/content/mail/add-data-to-mails.md index ede6e78e2..cf117e5c1 100644 --- a/guides/plugins/plugins/content/mail/add-data-to-mails.md +++ b/guides/plugins/plugins/content/mail/add-data-to-mails.md @@ -137,3 +137,27 @@ class MyMailSubscriber implements EventSubscriberInterface ``` ::: + +### Register your event subscriber + +You have to register the subscriber to the service container as well. + +Here's the respective example `services.xml`: + +::: code-group + +```xml [PLUGIN_ROOT/src/Resources/config/services.xml] + + + + + + + + + +``` + +:::