comparison 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
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
4 * @file 4 * @file
5 * Contains \Drupal. 5 * Contains \Drupal.
6 */ 6 */
7 7
8 use Drupal\Core\DependencyInjection\ContainerNotInitializedException; 8 use Drupal\Core\DependencyInjection\ContainerNotInitializedException;
9 use Drupal\Core\Messenger\LegacyMessenger;
10 use Drupal\Core\Url;
9 use Symfony\Component\DependencyInjection\ContainerInterface; 11 use Symfony\Component\DependencyInjection\ContainerInterface;
10 use Drupal\Core\Url;
11 12
12 /** 13 /**
13 * Static Service Container wrapper. 14 * Static Service Container wrapper.
14 * 15 *
15 * Generally, code in Drupal should accept its dependencies via either 16 * Generally, code in Drupal should accept its dependencies via either
79 class Drupal { 80 class Drupal {
80 81
81 /** 82 /**
82 * The current system version. 83 * The current system version.
83 */ 84 */
84 const VERSION = '8.4.7'; 85 const VERSION = '8.5.2';
85 86
86 /** 87 /**
87 * Core API compatibility. 88 * Core API compatibility.
88 */ 89 */
89 const CORE_COMPATIBILITY = '8.x'; 90 const CORE_COMPATIBILITY = '8.x';
755 */ 756 */
756 public static function time() { 757 public static function time() {
757 return static::getContainer()->get('datetime.time'); 758 return static::getContainer()->get('datetime.time');
758 } 759 }
759 760
761 /**
762 * Returns the messenger.
763 *
764 * @return \Drupal\Core\Messenger\MessengerInterface
765 * The messenger.
766 */
767 public static function messenger() {
768 // @todo Replace with service once LegacyMessenger is removed in 9.0.0.
769 // @see https://www.drupal.org/node/2928994
770 return new LegacyMessenger();
771 }
772
760 } 773 }