Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the internal tag from Core classes used in other packages #1486

Merged
merged 1 commit into from
Jul 1, 2023

Conversation

stof
Copy link
Member

@stof stof commented Jun 30, 2023

Classes and interfaces from Core used in other packages should not be marked as @internal as they need to be covered by BC.

For a bunch of them, I made them final (when they were not already final) so that we don't need to support the use case of inheritance.

@@ -4,9 +4,6 @@

use Symfony\Contracts\HttpClient\ResponseInterface;

/**
* @internal
Copy link
Member Author

Choose a reason for hiding this comment

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

I made the trait non-final because it is the only implementation of createFromResponse and so it might be useful for #1485 when implementing an error factory internally.

Alternatively, we could remove createFromResponse from the interface, inlining the extraction of the createFromContent arguments. A class with a custom logic in createFromContent is incompatible with the chain factory anyway because the chain factory performs this extraction on its own and then calls only createFromContent

@@ -8,8 +8,6 @@
* Convert an iterator into a Stream.
*
* @author Jérémy Derussé <[email protected]>
*
* @internal
Copy link
Member Author

Choose a reason for hiding this comment

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

Of all these stream classes, this IterableStream could stay internal if the S3 signer uses the factory instead. but other special streams can only be used directly.

@jderusse jderusse merged commit 6ca369f into async-aws:master Jul 1, 2023
14 checks passed
@stof stof deleted the non_internal_classes branch July 1, 2023 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants