Skip to content

Commit c2fe7c0

Browse files
committed
Fixed handling of fos_rest.body_listener.default_format config parameter.
1 parent c96e6e5 commit c2fe7c0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

DependencyInjection/FOSRestExtension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ public function load(array $configs, ContainerBuilder $container)
156156
$loader->load('body_listener.xml');
157157

158158
$container->setParameter($this->getAlias().'.throw_exception_on_unsupported_content_type', $config['body_listener']['throw_exception_on_unsupported_content_type']);
159+
$container->setParameter($this->getAlias().'.body_default_format', $config['body_listener']['default_format']);
159160
$container->setParameter($this->getAlias().'.decoders', $config['body_listener']['decoders']);
160161

161162
$arrayNormalizer = $config['body_listener']['array_normalizer'];

Resources/config/body_listener.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<argument type="service" id="fos_rest.decoder_provider" />
3838
<argument>%fos_rest.throw_exception_on_unsupported_content_type%</argument>
3939
<call method="setDefaultFormat">
40-
<argument>%fos_rest.body_listener.default_format%</argument>
40+
<argument>%fos_rest.body_default_format%</argument>
4141
</call>
4242
</service>
4343

0 commit comments

Comments
 (0)