Skip to content

Add autowiring for RequestFactory and ResponseFactory #208

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
Sep 5, 2017

Conversation

stof
Copy link
Contributor

@stof stof commented Sep 5, 2017

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Related tickets n/a
Documentation in/a
License MIT

What's in this PR?

MessageFactory has 2 parent interfaces (allowing to typehint against only the part you want). This makes these interfaces work for autowiring too (by using the existing message_factory service, as it implements these interfaces due to this inheritance)

Why?

Autowiring is great, and the bundle should make it work fine.

Copy link
Member

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

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

Thank you

@Nyholm Nyholm merged commit 3da46d5 into php-http:master Sep 5, 2017
@Nyholm
Copy link
Member

Nyholm commented Sep 5, 2017

Thank you @xabbuh for the review.

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.

3 participants