I am trying to connect my application in Yii2 with a SQLite database but every time I try to access my application I get the following error: The configuration for the "db" component must contain a "class" element.
This is how I have my database connection in SQLite
return [
'components' => [
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'sqlite:/softwareoperacional.db',
],
],
];