Mercurial > hg > isophonics-drupal-site
diff core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line diff
--- a/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php Thu Feb 28 13:21:36 2019 +0000 +++ b/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php Thu May 09 15:33:08 2019 +0100 @@ -4,7 +4,6 @@ use Drupal\Core\Path\AliasManagerInterface; use Drupal\Core\Path\CurrentPathStack; -use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\KernelEvents; use Symfony\Component\HttpKernel\Event\FilterControllerEvent; use Symfony\Component\HttpKernel\Event\PostResponseEvent; @@ -52,7 +51,7 @@ */ public function onKernelController(FilterControllerEvent $event) { // Set the cache key on the alias manager cache decorator. - if ($event->getRequestType() == HttpKernelInterface::MASTER_REQUEST) { + if ($event->isMasterRequest()) { $this->aliasManager->setCacheKey(rtrim($this->currentPath->getPath($event->getRequest()), '/')); } }