inject dependency in ThemeNegotiator
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3523000. -->
Reported by: [benstallings](https://www.drupal.org/user/210009)
Related to !44
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>phpstan reports,<br>
------ ------------------------------------------------------------------------------<br>
Line src/Theme/ThemeNegotiator.php<br>
------ ------------------------------------------------------------------------------<br>
70 \Drupal calls should be avoided in classes, use dependency injection instead<br>
------ ------------------------------------------------------------------------------</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p><code>phpstan analyse -l0 gin_login</code></p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>add the dependency to services.yml and __construct()</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>make an MR</p>
issue