-
Notifications
You must be signed in to change notification settings - Fork 50
Allow you to configure a client without a factory #257
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.
very good point, and i love how straightforward this looks. big +1
can you please add something to the changelog and do a PR against the documentation repository as well?
->children() | ||
->scalarNode('factory') | ||
->defaultValue('httplug.factory.auto') | ||
->cannotBeEmpty() | ||
->info('The service id of a factory to use when creating the adapter.') | ||
->end() | ||
->scalarNode('service') | ||
->defaultNull() | ||
->info('The service id of for the client to use.') |
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.
s/of for/of/
Thank you for the review. I updated it accordingly and added a PR to the docs |
What's in this PR?
The current way to define clients is:
However, If you already have a service you should be able to just "link" that.
This will allow you do decorate your custom HTTPlug clients with plugins and other nice things.