Mercurial > hg > isophonics-drupal-site
comparison core/modules/user/src/UserServiceProvider.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 | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
1 <?php | 1 <?php |
2 // @codingStandardsIgnoreFile | 2 |
3 // This class is intentionally empty so that it overwrites when sites are | |
4 // updated from a zip/tarball without deleting the /core folder first. | |
5 // @todo: remove in 8.3.x | |
6 // | |
7 namespace Drupal\user; | 3 namespace Drupal\user; |
8 class UserServiceProvider {} | 4 |
5 use Drupal\Core\DependencyInjection\ContainerBuilder; | |
6 use Drupal\Core\DependencyInjection\ServiceModifierInterface; | |
7 | |
8 class UserServiceProvider implements ServiceModifierInterface { | |
9 | |
10 /** | |
11 * {@inheritdoc} | |
12 */ | |
13 public function alter(ContainerBuilder $container) { | |
14 if ($container->hasParameter('user.tempstore.expire')) { | |
15 @trigger_error('The container parameter "user.tempstore.expire" is deprecated. Use "tempstore.expire" instead. See https://www.drupal.org/node/2935639.', E_USER_DEPRECATED); | |
16 $container->setParameter('tempstore.expire', $container->getParameter('user.tempstore.expire')); | |
17 } | |
18 else { | |
19 // Ensure the user.tempstore.expire parameter is set to the same value | |
20 // for modules that still rely on it. | |
21 $container->setParameter('user.tempstore.expire', $container->getParameter('tempstore.expire')); | |
22 } | |
23 } | |
24 | |
25 } |