Mercurial > hg > isophonics-drupal-site
diff core/lib/Drupal/Core/Cron.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 1fec387a4317 |
children |
line wrap: on
line diff
--- a/core/lib/Drupal/Core/Cron.php Thu Feb 28 13:21:36 2019 +0000 +++ b/core/lib/Drupal/Core/Cron.php Thu May 09 15:33:08 2019 +0100 @@ -3,16 +3,17 @@ namespace Drupal\Core; use Drupal\Component\Datetime\TimeInterface; +use Drupal\Component\Utility\Environment; use Drupal\Component\Utility\Timer; use Drupal\Core\Extension\ModuleHandlerInterface; +use Drupal\Core\Lock\LockBackendInterface; +use Drupal\Core\Queue\QueueFactory; use Drupal\Core\Queue\QueueWorkerManagerInterface; use Drupal\Core\Queue\RequeueException; +use Drupal\Core\Queue\SuspendQueueException; +use Drupal\Core\Session\AccountSwitcherInterface; +use Drupal\Core\Session\AnonymousUserSession; use Drupal\Core\State\StateInterface; -use Drupal\Core\Lock\LockBackendInterface; -use Drupal\Core\Queue\QueueFactory; -use Drupal\Core\Session\AnonymousUserSession; -use Drupal\Core\Session\AccountSwitcherInterface; -use Drupal\Core\Queue\SuspendQueueException; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; @@ -120,7 +121,7 @@ $this->accountSwitcher->switchTo(new AnonymousUserSession()); // Try to allocate enough time to run all the hook_cron implementations. - drupal_set_time_limit(240); + Environment::setTimeLimit(240); $return = FALSE;