Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

The name of the inflector service is now configurable

  • Loading branch information...
commit 35e7b38422bc43f28ada0e1c4bac33c08b76e04e 1 parent 5724ffc
Mark Kazemier authored lsmith77 committed
View
1  DependencyInjection/Configuration.php
@@ -66,6 +66,7 @@ public function getConfigTreeBuilder()
->scalarNode('templating')->defaultValue('templating')->end()
->scalarNode('serializer')->defaultValue('jms_serializer.serializer')->end()
->scalarNode('view_handler')->defaultValue('fos_rest.view_handler.default')->end()
+ ->scalarNode('inflector')->defaultValue('fos_rest.inflector.doctrine')->end()
->end()
->end()
->arrayNode('serializer')
View
2  Resources/config/routing.xml
@@ -48,7 +48,7 @@
<service id="fos_rest.routing.loader.reader.action" class="%fos_rest.routing.loader.reader.action.class%">
<argument type="service" id="annotation_reader" />
<argument type="service" id="fos_rest.request.param_fetcher.reader" />
- <argument type="service" id="fos_rest.util.inflector" />
+ <argument type="service" id="fos_rest.inflector" />
</service>
</services>
View
2  Resources/config/util.xml
@@ -9,6 +9,6 @@
<services>
<service id="fos_rest.format_negotiator" class="%fos_rest.format_negotiator.class%" public="true" />
- <service id="fos_rest.inflector" class="%fos_rest.inflector.class%" />
+ <service id="fos_rest.inflector.doctrine" class="%fos_rest.inflector.class%" />
</services>
</container>
Please sign in to comment.
Something went wrong with that request. Please try again.