Skip to content

Commit 9a3ce8c

Browse files
committed
ref
1 parent 5cc74a7 commit 9a3ce8c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/chat/persistent-chat-doctrine-dbal.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
*/
1111

1212
use Doctrine\DBAL\DriverManager;
13-
use Doctrine\DBAL\Tools\DsnParser;
1413
use Symfony\AI\Agent\Agent;
1514
use Symfony\AI\Chat\Bridge\Doctrine\DoctrineDbalMessageStore;
1615
use Symfony\AI\Chat\Chat;
@@ -22,7 +21,7 @@
2221

2322
$platform = PlatformFactory::create(env('OPENAI_API_KEY'), http_client());
2423

25-
$connection = DriverManager::getConnection((new DsnParser())->parse('pdo-sqlite:///:memory:'));
24+
$connection = DriverManager::getConnection(['driver' => 'pdo_sqlite', 'memory' => true]);
2625

2726
$store = new DoctrineDbalMessageStore('symfony', $connection);
2827
$store->setup();

0 commit comments

Comments
 (0)