Skip to content

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