Skip to content

Commit 27f2682

Browse files
committed
Renamed the format option to type
1 parent fee0dbb commit 27f2682

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function addCassetteNode(ArrayNodeDefinition $rootNode)
3333
->addDefaultsIfNotSet()
3434
->children()
3535
->scalarNode('path')->defaultValue('%kernel.cache_dir%/vcr')->end()
36-
->scalarNode('format')->defaultValue('blackhole')->end()
36+
->scalarNode('type')->defaultValue('blackhole')->end()
3737
->scalarNode('name')->defaultValue('vcr')->end()
3838
->end()
3939
->end()

DependencyInjection/VCRVCRExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function load(array $configs, ContainerBuilder $container)
1717
$config = $this->processConfiguration($this->getConfiguration($configs, $container), $configs);
1818

1919
$container->setParameter('vcr.cassette.path', $config['cassette']['path']);
20-
$container->setParameter('vcr.cassette.format', $config['cassette']['format']);
20+
$container->setParameter('vcr.cassette.type', $config['cassette']['type']);
2121
$container->setParameter('vcr.cassette.name', $config['cassette']['name']);
2222
}
2323

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ public function registerBundles()
3333
```yaml
3434
vcrvcr:
3535
cassette:
36+
type: json
3637
path: '%kernel.cache_dir%/vcr'
37-
format: json
3838
name: vcr
3939
```
4040

Resources/config/services.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
class: VCR\Configuration
1010
calls:
1111
- [ setCassettePath, [ %vcr.cassette.path% ] ]
12-
- [ setStorage, [ %vcr.cassette.format% ] ]
12+
- [ setStorage, [ %vcr.cassette.type% ] ]
1313

1414
vcr.http_client:
1515
class: VCR\Util\HttpClient

0 commit comments

Comments
 (0)