Integrates php-vcr into Symfony and its web profiler.
Install the behavior adding php-vcr/vcr-bundle
to your composer.json or
from CLI:
php composer.phar require php-vcr/vcr-bundle
And declare the bundle in your app/AppKernel.php
file:
public function registerBundles()
{
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
$bundles[] = new VCR\VCRBundle\VCRVCRBundle();
}
}
vcrvcr:
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.