Add a compiler pass to auto-discover services
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3266008. -->
Reported by: [larowlan](https://www.drupal.org/user/395439)
Related to !1
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Wondering if you could auto-discover classes in a compiler pass by looking for annotations, and hence avoid needing to declare a service.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<h3 id="summary-ui-changes">User interface changes</h3>
<h3 id="summary-api-changes">API changes</h3>
<h3 id="summary-data-model-changes">Data model changes</h3>
issue