updated core from 8.4 to 8.5 : bug with login_destination
This commit is contained in:
+15
-2
@@ -6,8 +6,9 @@
|
||||
*/
|
||||
|
||||
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.
|
||||
@@ -81,7 +82,7 @@ class Drupal {
|
||||
/**
|
||||
* The current system version.
|
||||
*/
|
||||
const VERSION = '8.4.4';
|
||||
const VERSION = '8.5.0';
|
||||
|
||||
/**
|
||||
* Core API compatibility.
|
||||
@@ -757,4 +758,16 @@ class Drupal {
|
||||
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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user