![Announcement icon Announcement icon](https://www.drupal.org/files/styles/grid-2-2x-square/public/announcements/drupal-evergreen-logo-280X280px%20%281%29_0.jpg?itok=PHpn6rCb)
Problem/Motivation
The text is coming form @alexpott, see #2278383: Create an injectible service for drupal_set_message()
+++ b/core/includes/bootstrap.inc
@@ -487,12 +470,24 @@ function drupal_set_message($message = NULL, $type = 'status', $repeat = FALSE)
+ // Workaround for code that can not check if the service exists.
+ if (!\Drupal::hasService('messenger')) {
+ return [];
+ }
So without this code drush can not install Drupal 8. It would have been better if the comment had given the example because this is probably why this was here.
Well yes but then that needs deploying etc... and this won't make it into 8.2.x. I think the workaround is okay - it just needs better docs and maybe a test. You could use an isolated PHPUnit test to do this for example.
Comments
Comment #4
jibranComment #6
larowlanlatest patch doesn't have the workaround