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] + + + + + + + + + +``` + +:::