Skip to content

Conversation

OskarStark
Copy link
Contributor

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

Discussed with @chr-hertel upfront.

Replace generic __invoke methods with descriptive names:

  • TransformerInterface::__invoketransform
  • VectorizerInterface::__invokevectorize
  • LoaderInterface::__invokeload

This improves code readability and makes the intent of each interface clearer. Updated all implementations and usages throughout the codebase.

@OskarStark OskarStark self-assigned this Sep 6, 2025
@OskarStark OskarStark added Store Issues & PRs about the AI Store component BC Break Breaking the Backwards Compatibility Promise labels Sep 6, 2025
@OskarStark OskarStark force-pushed the refactor/rename-invoke-methods branch from f509670 to d6b9f62 Compare September 6, 2025 15:47
Copy link
Member

@chr-hertel chr-hertel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@OskarStark OskarStark changed the title [Store] Rename __invoke methods to descriptive names [Store] Rename __invoke methods in interfaces to descriptive names Sep 6, 2025
@OskarStark OskarStark force-pushed the refactor/rename-invoke-methods branch from e27d798 to 0f2b756 Compare September 6, 2025 15:59
@OskarStark OskarStark merged commit a251c05 into symfony:main Sep 6, 2025
@GromNaN
Copy link
Member

GromNaN commented Sep 6, 2025

It's so much better. It allows a class to implement multiple interfaces if necessary.

@OskarStark
Copy link
Contributor Author

Indeed 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BC Break Breaking the Backwards Compatibility Promise Feature New feature Status: Reviewed Store Issues & PRs about the AI Store component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants