diff --git a/core/lib/Drupal/Core/Messenger/MessengerTrait.php b/core/lib/Drupal/Core/Messenger/MessengerTrait.php index af65590..628e18e 100644 --- a/core/lib/Drupal/Core/Messenger/MessengerTrait.php +++ b/core/lib/Drupal/Core/Messenger/MessengerTrait.php @@ -9,6 +9,11 @@ /** * Wrapper methods for \Drupal\Core\Messenger\Messenger. + * + * This utility trait should only be used in application-level code, such as + * classes that would implement ContainerInjectionInterface. Services registered + * in the Container should not use this trait but inject the appropriate service + * directly for easier testing. */ trait MessengerTrait {