Skip mytheme.services.yml creation and use class directly
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3600784. -->
Reported by: [tobiasb](https://www.drupal.org/user/183956)
>>>
<h2>Drupal version</h2>
<p>Drupal core 10</p>
<h2>Drupal Rector version</h2>
<p>Bot run #12-843071</p>
<p>These packages were used to generate the fixes:</p>
<p> drupal/upgrade_status: 5.0.0-alpha2<br>
mglaman/phpstan-drupal: 2.0.15<br>
palantirnet/drupal-rector: dev-main</p>
<p><a href="https://www.drupal.org/project/classy/issues/3596308">https://www.drupal.org/project/classy/issues/3596308</a></p>
<h2>Problem / Motivation</h2>
<p>For themes, it should be skipped to create a services.yml, not supported by (<code>\Drupal\Core\DrupalKernel::discoverServiceProviders</code>) and use the hook class directly.</p>
> Related issue: [Issue #3481215](https://www.drupal.org/node/3481215)
> Related issue: [Issue #3596308](https://www.drupal.org/node/3596308)
> Related issue: [Issue #2002606](https://www.drupal.org/node/2002606)
issue