Skip to content

Conversation

@OskarStark
Copy link
Contributor

@OskarStark OskarStark commented Nov 22, 2025

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

The source parameter in LoaderInterface::load() is now optional with a default value of null. This change makes the API more flexible, particularly for the InMemoryLoader and other loaders which doesn't require a source.

The source parameter in LoaderInterface::load() is now optional with a default value of null. This change makes the API more flexible, particularly for the InMemoryLoader which doesn't require a source.

Updated the interface and all implementations:
- LoaderInterface
- InMemoryLoader
- RssFeedLoader
- TextFileLoader
@carsonbot carsonbot changed the title Make LoaderInterface::load() source parameter optional Make LoaderInterface::load() source parameter optional Nov 22, 2025
@OskarStark OskarStark changed the title Make LoaderInterface::load() source parameter optional [Store] Make LoaderInterface::load() $source parameter optional Nov 22, 2025
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.

fast fast fast - thanks!

@carsonbot carsonbot changed the title [Store] Make LoaderInterface::load() $source parameter optional Make LoaderInterface::load() $source parameter optional Nov 22, 2025
@OskarStark OskarStark merged commit ba2321e into symfony:main Nov 22, 2025
19 checks passed
@chr-hertel chr-hertel added the BC Break Breaking the Backwards Compatibility Promise label Nov 22, 2025
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants