SystemAccountSettingsForm forgets to use AutowireTrait
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3580967. --> Reported by: [avpaderno](https://www.drupal.org/user/55077) Related to !17 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Trying to access the settings form causes the following error.</p> <pre>ArgumentCountError: Too few arguments to function Drupal\system_account\Form\SystemAccountSettingsForm::__construct(), 2 passed in /var/www/drupal/web/core/lib/Drupal/Core/Form/ConfigFormBase.php on line 61 and exactly 3 expected in Drupal\system_account\Form\SystemAccountSettingsForm-&gt;__construct() (line 33 of /var/lib/tugboat/src/Form/SystemAccountSettingsForm.php).</pre><p>This happens because that class is written to use <code>AutowireTrait</code>, but it is missing the <code>use AutowireTrait;</code> line.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Add the <code>use AutowireTrait;</code> line in the class, and <code>use Drupal\Core\DependencyInjection\AutowireTrait;</code>.</p>
issue