Mercurial > hg > cmmr2012-drupal-site
view core/modules/user/src/UserServiceProvider.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
children |
line wrap: on
line source
<?php namespace Drupal\user; use Drupal\Core\DependencyInjection\ContainerBuilder; use Drupal\Core\DependencyInjection\ServiceModifierInterface; class UserServiceProvider implements ServiceModifierInterface { /** * {@inheritdoc} */ public function alter(ContainerBuilder $container) { if ($container->hasParameter('user.tempstore.expire')) { @trigger_error('The container parameter "user.tempstore.expire" is deprecated. Use "tempstore.expire" instead. See https://www.drupal.org/node/2935639.', E_USER_DEPRECATED); $container->setParameter('tempstore.expire', $container->getParameter('user.tempstore.expire')); } else { // Ensure the user.tempstore.expire parameter is set to the same value // for modules that still rely on it. $container->setParameter('user.tempstore.expire', $container->getParameter('tempstore.expire')); } } }