Errors encountered when using DB other than MySQL
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3076209. -->
Reported by: [edward.radau](https://www.drupal.org/user/2872903)
>>>
<p>When enabling this module there are instances where an error such as:</p>
<p>TypeError: Argument 1 passed to Drupal\content_kanban\KanbanLogService::__construct() must be an instance of Drupal\Core\Database\Driver\mysql\Connection, instance of Drupal\Core\Database\Driver\pgsql\Connection given, called in </p>
<p>is generated and this is due to the way some of content_kanban module's services are being registered. In the code when you declare a service and add "@database" as an argument within the service class itself instead of including the proper namespace you're doing.</p>
<p><code>use Drupal\Core\Database\Driver\mysql\Connection;</code></p>
<p>instead of</p>
<p><code>use Drupal\Core\Database\Connection;</code></p>
<p>which isn't database agnostic and causes errors to be generated anything Drupal is being hosted on anything other than MySQL. In this case I was using Postgres</p>
issue