diff vendor/symfony/http-kernel/DataCollector/TimeDataCollector.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 129ea1e6d783
children
line wrap: on
line diff
--- a/vendor/symfony/http-kernel/DataCollector/TimeDataCollector.php	Thu Feb 28 13:21:36 2019 +0000
+++ b/vendor/symfony/http-kernel/DataCollector/TimeDataCollector.php	Thu May 09 15:33:08 2019 +0100
@@ -47,6 +47,7 @@
             'token' => $response->headers->get('X-Debug-Token'),
             'start_time' => $startTime * 1000,
             'events' => [],
+            'stopwatch_installed' => \class_exists(Stopwatch::class, false),
         ];
     }
 
@@ -140,6 +141,14 @@
     }
 
     /**
+     * @return bool whether or not the stopwatch component is installed
+     */
+    public function isStopwatchInstalled()
+    {
+        return $this->data['stopwatch_installed'];
+    }
+
+    /**
      * {@inheritdoc}
      */
     public function getName()