Skip to content

Add ResolverInterface as common interface for Resolver class#139

Merged
jsor merged 1 commit intoreactphp:masterfrom
clue-labs:resolverinterface
Jul 15, 2019
Merged

Add ResolverInterface as common interface for Resolver class#139
jsor merged 1 commit intoreactphp:masterfrom
clue-labs:resolverinterface

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