Permalink
Browse files

add fos_rest.exception.service to configuration (#1745)

* add exception.service to configuration

add fos_rest.exception.service to configuration

* Add exception.service to reference
1 parent e3ac153 commit 42f4bdb744b98376889999846eaef9089398e28c @egils egils committed with GuilhemN Aug 8, 2017
Showing with 2 additions and 0 deletions.
  1. +1 −0 DependencyInjection/Configuration.php
  2. +1 −0 Resources/doc/configuration-reference.rst
@@ -406,6 +406,7 @@ private function addExceptionSection(ArrayNodeDefinition $rootNode)
->canBeEnabled()
->children()
->scalarNode('exception_controller')->defaultNull()->end()
+ ->scalarNode('service')->defaultNull()->end()
->arrayNode('codes')
->useAttributeAsKey('name')
->beforeNormalization()
@@ -76,6 +76,7 @@ Full default configuration
exception:
enabled: false
exception_controller: null
+ service: null
codes:
# Prototype

0 comments on commit 42f4bdb

Please sign in to comment.