Replace class_exist with container modules
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3540815. -->
Reported by: [jurgenhaas](https://www.drupal.org/user/168924)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Since core introduced some fallbacks to the class loader, the usage of <code>class_exist</code> could result in false positives.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Replace the usage of it in <code>\Drupal\eca\EcaServiceProvider</code> with the container modules.</p>
issue