*/
use Drupal\Core\DependencyInjection\ContainerNotInitializedException;
-use Symfony\Component\DependencyInjection\ContainerInterface;
+use Drupal\Core\Messenger\LegacyMessenger;
use Drupal\Core\Url;
+use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Static Service Container wrapper.
/**
* The current system version.
*/
- const VERSION = '8.4.5';
+ const VERSION = '8.5.3';
/**
* Core API compatibility.
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();
+ }
+
}