Move to use messenger interface

Created on 10 July 2025, 4 days ago

Problem/Motivation

If you install the Experience Builder they override the default messenger, so this should be the interface instead.

Error example:
TypeError: Drupal\modeler_api\ExportRecipe::__construct(): Argument #4 ($messenger) must be of type Drupal\Core\Messenger\Messenger, Drupal\experience_builder\Messenger given, called in /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\modeler_api\ExportRecipe->__construct() (line 30 of modules/contrib/modeler_api/src/ExportRecipe.php).

Steps to reproduce

Install XB and AI Agents
Try to export recipe.

Proposed resolution

Use the messenger interface instead.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany marcus_johansson

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024