Skip to content

Commit

Permalink
added serializer:serialize_null setting
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith77 committed Jun 19, 2013
1 parent e290333 commit 82e730a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public function getConfigTreeBuilder()
->arrayNode('groups')
->prototype('scalar')->end()
->end()
->booleanNode('serialize_null')->defaultFalse()->end()
->end()
->end()
->end()
Expand Down
1 change: 1 addition & 0 deletions DependencyInjection/FOSRestExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public function load(array $configs, ContainerBuilder $container)
if (!empty($config['serializer']['groups'])) {
$container->setParameter($this->getAlias().'.serializer.exclusion_strategy.groups', $config['serializer']['groups']);
}
$container->setParameter($this->getAlias().'.serializer.serialize_null', $config['serializer']['serialize_null']);

$container->setParameter($this->getAlias().'.formats', $formats);
$container->setParameter($this->getAlias().'.default_engine', $config['view']['default_engine']);
Expand Down

1 comment on commit 82e730a

@nurikabe
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this. Would love a new stable tag now that 2.3.1 is out.

Please sign in to comment.