-
Notifications
You must be signed in to change notification settings - Fork 50
Enhancement: Tag clients #348
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like a good idea to me.
@@ -419,6 +419,7 @@ function ($id) { | |||
->addArgument([ | |||
'client_name' => $clientName, | |||
]) | |||
->addTag('httplug.client') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'd make this a public constant so that things using the tag can use it explicitly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adjusted!
I'll update the documentation as well.
1f7d439
to
f92cd2a
Compare
074bc0e
to
aa0102d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please rebase this on master? there is a conflict, i guess its about the changelog file...
Rebased! |
Thank you, @dbu! |
What's in this PR?
This PR
'httplug.client'
to clients created by theHttplugExtension
Why?
This would allow fetching services by tag and replacing them, for example, with a concrete
Mock\Client
, without having to know the exact service identifier.Checklist