- Issue created by @isholgueras
- Merge request !45Resolves #3539762: typecast service to MessengerInterface → (Open) created by isholgueras
The form ConductorConfigForm
uses the Messenger object implemented in Drupal\Core\Messenger\Messenger
, but experience_builder overrides it, using the one in Drupal\experience_builder\Messenger
.
- Having enabled experience_builder
and conductor
- Visit /admin/config/development/conductor
The website encountered an unexpected error. Try again later.
TypeError: Drupal\conductor\Form\ConductorConfigForm::__construct(): Argument #5 ($messenger) must be of type Drupal\Core\Messenger\Messenger, Drupal\experience_builder\Messenger given, called in /var/www/html/web/modules/contrib/conductor/src/Form/ConductorConfigForm.php on line 49 in Drupal\conductor\Form\ConductorConfigForm->__construct() (line 72 of modules/contrib/conductor/src/Form/ConductorConfigForm.php).
It should type cast to the interface instead of the class.
Type the messenger object to MessengerInterface
instead of Messenger
Active
1.0
Code