Skip to content

Commit

Permalink
The name of the inflector service is now configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Kazemier authored and lsmith77 committed Mar 19, 2013
1 parent 5724ffc commit 35e7b38
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions DependencyInjection/Configuration.php
Expand Up @@ -66,6 +66,7 @@ public function getConfigTreeBuilder()
->scalarNode('templating')->defaultValue('templating')->end() ->scalarNode('templating')->defaultValue('templating')->end()
->scalarNode('serializer')->defaultValue('jms_serializer.serializer')->end() ->scalarNode('serializer')->defaultValue('jms_serializer.serializer')->end()
->scalarNode('view_handler')->defaultValue('fos_rest.view_handler.default')->end() ->scalarNode('view_handler')->defaultValue('fos_rest.view_handler.default')->end()
->scalarNode('inflector')->defaultValue('fos_rest.inflector.doctrine')->end()
->end() ->end()
->end() ->end()
->arrayNode('serializer') ->arrayNode('serializer')
Expand Down
2 changes: 1 addition & 1 deletion Resources/config/routing.xml
Expand Up @@ -48,7 +48,7 @@
<service id="fos_rest.routing.loader.reader.action" class="%fos_rest.routing.loader.reader.action.class%"> <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="annotation_reader" />
<argument type="service" id="fos_rest.request.param_fetcher.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> </service>


</services> </services>
Expand Down
2 changes: 1 addition & 1 deletion Resources/config/util.xml
Expand Up @@ -9,6 +9,6 @@


<services> <services>
<service id="fos_rest.format_negotiator" class="%fos_rest.format_negotiator.class%" public="true" /> <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> </services>
</container> </container>

0 comments on commit 35e7b38

Please sign in to comment.