Permalink
Browse files

ensure that preger_extension and format_fallback are always set

  • Loading branch information...
lsmith77 committed Oct 14, 2011
1 parent 48e26ab commit 6d37c05a405ed683149b1bf9c3b5b684582d3b65
Showing with 2 additions and 0 deletions.
  1. +2 −0 DependencyInjection/FOSRestExtension.php
@@ -96,6 +96,8 @@ public function load(array $configs, ContainerBuilder $container)
$container->setParameter($this->getAlias().'.fallback_format', $config['format_listener']['fallback_format']);
} else {
$container->setParameter($this->getAlias().'.default_priorities', array());
+ $container->setParameter($this->getAlias().'.prefer_extension', true);
+ $container->setParameter($this->getAlias().'.fallback_format', 'html');
}
if (!empty($config['view']['mime_types'])) {

0 comments on commit 6d37c05

Please sign in to comment.