\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-&gt;container-&gt;initialized() has gone away!</p> <pre>&nbsp; /**<br>&nbsp;&nbsp; * {@inheritdoc}<br>&nbsp;&nbsp; */<br>&nbsp; public function collect(Request $request, Response $response, \Exception $exception = NULL) {<br>&nbsp;&nbsp;&nbsp; $this-&gt;data['initialized_services'] = array();<br>&nbsp;&nbsp;&nbsp; if ($this-&gt;getServicesCount()) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach (array_keys($this-&gt;getServices()) as $id) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($this-&gt;container-&gt;initialized($id)) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $this-&gt;data['initialized_services'][] = $id;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp; }</pre>
issue