Skip to content

Support \VCR\VCR::configure()->setStorage #10

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

Merged
merged 1 commit into from
Jan 12, 2016

Conversation

GaryJones
Copy link
Contributor

Allow VCR configuration to be used, instead of forcing a fallback to YAML cassette storage.

This could probably be further enhanced by also checking for .yaml extension. If that's wanted, I can add it in.

Moving forwards, there should probably be some way for this package to read what the registered storage types are (JSON, YAML, Blackhole, something custom), and dynamically set that if an appropriate extension is detected.

Fixes #9

Allow VCR configuration to be used, instead of forcing a fallback to YAML cassette storage.

Fixes php-vcr#9
@adri
Copy link
Contributor

adri commented Jan 12, 2016

Thanks!

adri added a commit that referenced this pull request Jan 12, 2016
Support \VCR\VCR::configure()->setStorage
@adri adri merged commit e29c11d into php-vcr:master Jan 12, 2016
@adri
Copy link
Contributor

adri commented Jan 12, 2016

It's good, the default storage is yaml.

@GaryJones GaryJones deleted the 9-setstorage branch January 13, 2016 08:18
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.

2 participants