\Drupal\webprofiler\DataCollector\ServiceDataCollector::collect() is out of step with core
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #2342161. -->
Reported by: [martin107](https://www.drupal.org/user/2659379)
>>>
<p>The code below need to be refactored as </p>
<p>$this->container->initialized() has gone away!</p>
<pre> /**<br> * {@inheritdoc}<br> */<br> public function collect(Request $request, Response $response, \Exception $exception = NULL) {<br> $this->data['initialized_services'] = array();<br> if ($this->getServicesCount()) {<br> foreach (array_keys($this->getServices()) as $id) {<br> if ($this->container->initialized($id)) {<br> $this->data['initialized_services'][] = $id;<br> }<br> }<br> }<br> }</pre>
issue