Skip to content

Conversation

Guikingone
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
Docs? no
Issues Fix none
License MIT

Hi 👋🏻

A small improvement for the store alias, this approach allows to use the same name for various store (like foo for a memory one, a qdrant one, etc) without injection issues.

@chr-hertel
Copy link
Member

So I would have to use StoreInterface $chromadbBlogStore instead of StoreInterface $blogStore?

@OskarStark
Copy link
Contributor

What about registering both? The long and the short version? I would argue, that this is not really common use case, right?

Also docs would need an update

@Guikingone
Copy link
Contributor Author

@chr-hertel Yes

@OskarStark Yes, agree on the fact that it's not a common approach (even if it can be used when you're migrating from one to another), registering both is fine for me if @chr-hertel agreed on it 👍🏻

@OskarStark OskarStark changed the title [AIBundle] Improvement on alias for store Improvement on alias for store Sep 22, 2025
@OskarStark OskarStark added the AI Bundle Issues & PRs about the AI integration bundle label Sep 22, 2025
@carsonbot carsonbot changed the title Improvement on alias for store [AI Bundle] Improvement on alias for store Sep 22, 2025
@OskarStark
Copy link
Contributor

Thank you @Guikingone.

@OskarStark OskarStark merged commit 498745c into symfony:main Sep 23, 2025
14 checks passed
OskarStark added a commit that referenced this pull request Sep 23, 2025
…t (OskarStark)

This PR was squashed before being merged into the main branch.

Discussion
----------

[AI Bundle] Document store dependency injection improvement

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| Docs?         | yes
| Issues        | Follows #641
| License       | MIT

Add documentation for the improved store alias functionality that allows multiple stores with the same name across different types. The feature provides both simple aliases and type-prefixed aliases for flexible dependency injection without conflicts.

Commits
-------

46d92ab [AI Bundle] Document store dependency injection improvement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AI Bundle Issues & PRs about the AI integration bundle Bug Something isn't working Status: Needs Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants