Skip to content

Commit c131b97

Browse files
committed
feature #1196 [Chat] Rename HttpFoundation message store to Session message store (OskarStark)
This PR was squashed before being merged into the main branch. Discussion ---------- [Chat] Rename HttpFoundation message store to Session message store | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | Docs? | no | Issues | -- | License | MIT This rename better reflects the purpose of the store which uses the Symfony session for message persistence. Commits ------- 667a190 [Chat] Rename HttpFoundation message store to Session message store
2 parents 213c9db + 667a190 commit c131b97

File tree

13 files changed

+10
-10
lines changed

13 files changed

+10
-10
lines changed

deptrac.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ deptrac:
7373
collectors:
7474
- type: classLike
7575
value: Symfony\\AI\\Chat\\Bridge\\Doctrine\\.*
76-
- name: ChatHttpFoundationBridge
76+
- name: ChatSessionBridge
7777
collectors:
7878
- type: classLike
79-
value: Symfony\\AI\\Chat\\Bridge\\HttpFoundation\\.*
79+
value: Symfony\\AI\\Chat\\Bridge\\Session\\.*
8080
- name: ChatMeilisearchBridge
8181
collectors:
8282
- type: classLike
@@ -332,7 +332,7 @@ deptrac:
332332
ChatDoctrineBridge:
333333
- ChatComponent
334334
- PlatformComponent
335-
ChatHttpFoundationBridge:
335+
ChatSessionBridge:
336336
- ChatComponent
337337
- PlatformComponent
338338
ChatMeilisearchBridge:

docs/components/chat.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ store and ``bin/console ai:message-store:drop`` to clean up the message store:
146146
.. _`Cloudflare`: https://developers.cloudflare.com/kv/
147147
.. _`Doctrine DBAL`: https://www.doctrine-project.org/projects/dbal.html
148148
.. _`InMemory`: https://www.php.net/manual/en/language.types.array.php
149-
.. _`HttpFoundation session`: https://developers.cloudflare.com/vectorize/
149+
.. _`HttpFoundation session`: https://symfony.com/doc/current/session.html
150150
.. _`Meilisearch`: https://www.meilisearch.com/
151151
.. _`MongoDb`: https://www.mongodb.com/
152152
.. _`Pogocache`: https://pogocache.com/

examples/chat/persistent-chat-session.php

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

1212
use Symfony\AI\Agent\Agent;
13-
use Symfony\AI\Chat\Bridge\HttpFoundation\MessageStore;
13+
use Symfony\AI\Chat\Bridge\Session\MessageStore;
1414
use Symfony\AI\Chat\Chat;
1515
use Symfony\AI\Platform\Bridge\OpenAi\PlatformFactory;
1616
use Symfony\AI\Platform\Message\Message;

examples/commands/message-stores.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
use MongoDB\Client as MongoDbClient;
1616
use Symfony\AI\Chat\Bridge\Cache\MessageStore as CacheStore;
1717
use Symfony\AI\Chat\Bridge\Doctrine\DoctrineDbalMessageStore;
18-
use Symfony\AI\Chat\Bridge\HttpFoundation\MessageStore as SessionMessageStore;
1918
use Symfony\AI\Chat\Bridge\Meilisearch\MessageStore as MeilisearchMessageStore;
2019
use Symfony\AI\Chat\Bridge\MongoDb\MessageStore as MongoDbMessageStore;
2120
use Symfony\AI\Chat\Bridge\Pogocache\MessageStore as PogocacheMessageStore;
2221
use Symfony\AI\Chat\Bridge\Redis\MessageStore as RedisMessageStore;
22+
use Symfony\AI\Chat\Bridge\Session\MessageStore as SessionMessageStore;
2323
use Symfony\AI\Chat\Bridge\SurrealDb\MessageStore as SurrealDbMessageStore;
2424
use Symfony\AI\Chat\Command\DropStoreCommand;
2525
use Symfony\AI\Chat\Command\SetupStoreCommand;

src/ai-bundle/src/AiBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@
3939
use Symfony\AI\Chat\Bridge\Cache\MessageStore as CacheMessageStore;
4040
use Symfony\AI\Chat\Bridge\Cloudflare\MessageStore as CloudflareMessageStore;
4141
use Symfony\AI\Chat\Bridge\Doctrine\DoctrineDbalMessageStore;
42-
use Symfony\AI\Chat\Bridge\HttpFoundation\MessageStore as SessionMessageStore;
4342
use Symfony\AI\Chat\Bridge\Meilisearch\MessageStore as MeilisearchMessageStore;
4443
use Symfony\AI\Chat\Bridge\MongoDb\MessageStore as MongoDbMessageStore;
4544
use Symfony\AI\Chat\Bridge\Pogocache\MessageStore as PogocacheMessageStore;
4645
use Symfony\AI\Chat\Bridge\Redis\MessageStore as RedisMessageStore;
46+
use Symfony\AI\Chat\Bridge\Session\MessageStore as SessionMessageStore;
4747
use Symfony\AI\Chat\Bridge\SurrealDb\MessageStore as SurrealDbMessageStore;
4848
use Symfony\AI\Chat\Chat;
4949
use Symfony\AI\Chat\ChatInterface;
File renamed without changes.

src/chat/src/Bridge/HttpFoundation/.github/PULL_REQUEST_TEMPLATE.md renamed to src/chat/src/Bridge/Session/.github/PULL_REQUEST_TEMPLATE.md

File renamed without changes.

src/chat/src/Bridge/HttpFoundation/.github/close-pull-request.yml renamed to src/chat/src/Bridge/Session/.github/close-pull-request.yml

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)