diff core/lib/Drupal/Core/EventSubscriber/PathSubscriber.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 diff
--- a/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php	Thu Feb 28 13:11:55 2019 +0000
+++ b/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php	Thu May 09 15:34:47 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()), '/'));
     }
   }