Move to use messenger interface
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3535131. -->
Reported by: [marcus_johansson](https://www.drupal.org/user/385947)
Related to !7
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>If you install the Experience Builder they override the default messenger, so this should be the interface instead.</p>
<p>Error example:<br>
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).</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Install XB and AI Agents<br>
Try to export recipe.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Use the messenger interface instead.</p>
issue