Skip to content
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

Added batch client support #103

Merged
merged 3 commits into from
Jul 25, 2016
Merged

Added batch client support #103

merged 3 commits into from
Jul 25, 2016

Conversation

Nyholm
Copy link
Member

@Nyholm Nyholm commented Jul 25, 2016

Q A
Bug fix? no
New feature? yes
BC breaks? yes
Deprecations? no
Related tickets fixes #70
Documentation
License MIT

What's in this PR?

Added support for BatchClient

@@ -138,7 +138,8 @@ protected function configureClients(ArrayNodeDefinition $root)
->validate()
->ifTrue(function ($clients) {
foreach ($clients as $name => $config) {
return $config['flexible_client'] && $config['http_methods_client'];
// Make sure we only allow one of these to be true
return (bool) $config['flexible_client'] + (bool) $config['http_methods_client'] + (bool) $config['batch_client'] >= 2;
Copy link
Member

Choose a reason for hiding this comment

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

Why?

Copy link
Member Author

@Nyholm Nyholm Jul 25, 2016

Choose a reason for hiding this comment

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

You cant use all of them the same time. That is why I limit them. (As we did before). This could be changed when we are doing behaviors (#91)

@dbu
Copy link
Collaborator

dbu commented Jul 25, 2016

looks good to me. @sagikazarmark ok to merge?

@sagikazarmark sagikazarmark merged commit bb6ac80 into master Jul 25, 2016
@sagikazarmark sagikazarmark deleted the dev-batch branch July 25, 2016 12:51
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.

Add support for clients in client-common
3 participants