From 450161c31f40132e04f0888e23c902a2b2510356 Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Thu, 4 Jan 2024 11:28:52 -0300 Subject: [PATCH] Update README.md. --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1c400c4d6..833a0d183 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ declare(strict_types=1); use Yiisoft\Db\Connection\ConnectionInterface; use Yiisoft\Db\Sqlite\Connection as SqliteConnection; +use Yiisoft\Db\Sqlite\Driver; /** * config ConnectionInterface::class @@ -64,8 +65,8 @@ return [ ConnectionInterface::class => [ 'class' => SqliteConnection::class, '__construct()' => [ - 'dsn' => $params['yiisoft/db-sqlite']['dsn'], - ] + 'driver' => new Driver($params['yiisoft/db-sqlite']['dsn']), + ], ] ]; ``` @@ -145,6 +146,7 @@ declare(strict_types=1); use Yiisoft\ActiveRecord\ActiveRecordFactory; use Yiisoft\Db\Connection\ConnectionInterface; use Yiisoft\Db\Sqlite\Connection as SqliteConnection; +use Yiisoft\Db\Sqlite\Driver; use Yiisoft\Definitions\Reference; /** @@ -154,8 +156,8 @@ return [ SqliteConnection::class => [ 'class' => SqliteConnection::class, '__construct()' => [ - 'dsn' => $params['yiisoft/db-sqlite']['dsn'], - ] + 'driver' => new Driver($params['yiisoft/db-sqlite']['dsn']), + ], ], ActiveRecordFactory::class => [