Skip to content

Add ResolverInterface as common interface for Resolver class #139

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

Merged
merged 1 commit into from
Jul 15, 2019

Conversation

clue
Copy link
Member

@clue clue commented Jul 15, 2019

As of #134, all classes are marked as final, including the Resolver class which is most commonly used in consuming packages. This changeset adds a simple ResolverInterface interface as the common interface into this class, so that it can be mocked in consuming packages. This is not a BC break because the interface is strictly compatible with the original Resolver behavior.

Refs reactphp/socket#207
Builds on top of #134

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

Successfully merging this pull request may close these issues.

3 participants