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

Update configuration for 1.4.x driver options #219

Merged
merged 11 commits into from
Feb 4, 2014
Merged

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented Feb 4, 2014

Supersedes @malarzm's work in #218.

Fixes #203, #214, and #215.

Changed VariableNode to prototyped ArrayNode

Listing all options for connection in Configuration

Removed \MongoClient consts

Changed readPreferenceTags to arrayNode
->end()
->end()
->booleanNode('j')->end()
->scalarNode('timeout')->end()
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't this be an integer node ?

Copy link
Member Author

Choose a reason for hiding this comment

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

The bundle still supports Symfony 2.1, so those aren't yet available. Perhaps we can bump it to 2.2 for 3.0. I've created #220 to track the idea.

Also refactors the ConfigurationTest class. Removed strict checking of default_commit_options (and tests), added missing options. Fixed handling of readPreferenceTags option for XML.

As a change, "server" and "options" no longer have default values; however, existing code in Configuration should handle this fine.
jmikola added a commit that referenced this pull request Feb 4, 2014
Update configuration for 1.4.x driver options
@jmikola jmikola merged commit 80c9f4d into master Feb 4, 2014
@jmikola jmikola deleted the 3.0-ctor-args branch February 4, 2014 04:31
@malarzm
Copy link
Member

malarzm commented Feb 4, 2014

Glad I could help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Respect MongoClient::__construct() options, remove deprecated
3 participants