We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cc74a7 commit 9a3ce8cCopy full SHA for 9a3ce8c
examples/chat/persistent-chat-doctrine-dbal.php
@@ -10,7 +10,6 @@
10
*/
11
12
use Doctrine\DBAL\DriverManager;
13
-use Doctrine\DBAL\Tools\DsnParser;
14
use Symfony\AI\Agent\Agent;
15
use Symfony\AI\Chat\Bridge\Doctrine\DoctrineDbalMessageStore;
16
use Symfony\AI\Chat\Chat;
@@ -22,7 +21,7 @@
22
21
23
$platform = PlatformFactory::create(env('OPENAI_API_KEY'), http_client());
24
25
-$connection = DriverManager::getConnection((new DsnParser())->parse('pdo-sqlite:///:memory:'));
+$connection = DriverManager::getConnection(['driver' => 'pdo_sqlite', 'memory' => true]);
26
27
$store = new DoctrineDbalMessageStore('symfony', $connection);
28
$store->setup();
0 commit comments