Mercurial > hg > isophonics-drupal-site
diff core/lib/Drupal.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 5fb285c0d0e3 |
children | e200cb7efeb3 |
line wrap: on
line diff
--- a/core/lib/Drupal.php Mon Apr 23 09:33:26 2018 +0100 +++ b/core/lib/Drupal.php Mon Apr 23 09:46:53 2018 +0100 @@ -6,8 +6,9 @@ */ use Drupal\Core\DependencyInjection\ContainerNotInitializedException; +use Drupal\Core\Messenger\LegacyMessenger; +use Drupal\Core\Url; use Symfony\Component\DependencyInjection\ContainerInterface; -use Drupal\Core\Url; /** * Static Service Container wrapper. @@ -81,7 +82,7 @@ /** * The current system version. */ - const VERSION = '8.4.7'; + const VERSION = '8.5.2'; /** * Core API compatibility. @@ -757,4 +758,16 @@ return static::getContainer()->get('datetime.time'); } + /** + * Returns the messenger. + * + * @return \Drupal\Core\Messenger\MessengerInterface + * The messenger. + */ + public static function messenger() { + // @todo Replace with service once LegacyMessenger is removed in 9.0.0. + // @see https://www.drupal.org/node/2928994 + return new LegacyMessenger(); + } + }