Skip to content

Commit 1157fbc

Browse files
committed
Updated documentation according to comments
1 parent 1e1ed7b commit 1157fbc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Resources/doc/5-automatic-route-generation_single-restful-controller.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,8 @@ use FOS\RestBundle\Controller\Annotations\Route;
286286
### Changing pluralization in generated routes
287287

288288
If you want to change pluralization in generated routes, you can do this by replacing
289-
"fos_rest.service.inflector" service with your own implementation of "fos_rest.inflector".
290-
Create a new class that implements "FOS\RestBundle\Util\Inflector\InflectorInterface" and define a service of this
291-
class with name e.g. "my_fos_rest.inflector" and set the parameter in config.yml.
289+
"fos_rest.inflector.doctrine" service with your own implementation.
290+
Create a new class that implements "FOS\RestBundle\Util\Inflector\InflectorInterface".
292291

293292
The example below will remove pluralization by implementing the interface and returning the "$word"
294293
instead of executing method ```Inflector::pluralize($word);```

0 commit comments

Comments
 (0)