Integrates php-vcr into Symfony and its web profiler.
Install the behavior adding php-vcr/vcr-bundle
to your composer.json or
from CLI:
composer require php-vcr/vcr-bundle
And declare the bundle in your config/bundles.php
file:
return [
// ...
VCR\VCRBundle\VCRBundle::class => ['test' => true],
];
vcr:
enabled: true
library_hooks:
stream_wrapper: false
curl: false
soap: false
request_matchers:
method: true
url: true
query_string: true
host: true
headers: true
body: true
post_fields: true
cassette:
type: json
path: '%kernel.cache_dir%/vcr'
name: vcr
- Kévin Gomez
- Ludovic Fleury - to whom I borrowed the design of the web profiler part from his GuzzleBundle.
This bundle is released under the MIT license.