comparison 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
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
45 45
46 $this->data = [ 46 $this->data = [
47 'token' => $response->headers->get('X-Debug-Token'), 47 'token' => $response->headers->get('X-Debug-Token'),
48 'start_time' => $startTime * 1000, 48 'start_time' => $startTime * 1000,
49 'events' => [], 49 'events' => [],
50 'stopwatch_installed' => \class_exists(Stopwatch::class, false),
50 ]; 51 ];
51 } 52 }
52 53
53 /** 54 /**
54 * {@inheritdoc} 55 * {@inheritdoc}
138 { 139 {
139 return $this->data['start_time']; 140 return $this->data['start_time'];
140 } 141 }
141 142
142 /** 143 /**
144 * @return bool whether or not the stopwatch component is installed
145 */
146 public function isStopwatchInstalled()
147 {
148 return $this->data['stopwatch_installed'];
149 }
150
151 /**
143 * {@inheritdoc} 152 * {@inheritdoc}
144 */ 153 */
145 public function getName() 154 public function getName()
146 { 155 {
147 return 'time'; 156 return 'time';