File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -7,19 +7,19 @@ Pre-registered resolvers are available and can easily be overridden.
7
7
8
8
There are two pre-registered operation path naming services:
9
9
10
- Service name | Entity name | Path result
11
- --------------------------------------------------|--------------|----------------
12
- ` api_platform.operation_path_resolver .underscore ` | ` MyResource ` | ` /my_resources `
13
- ` api_platform.operation_path_resolver .dash ` | ` MyResource ` | ` /my-resources `
10
+ Service name | Entity name | Path result
11
+ ------------------------------------------------------ |--------------|----------------
12
+ ` api_platform.path_segment_name_generator .underscore ` | ` MyResource ` | ` /my_resources `
13
+ ` api_platform.path_segment_name_generator .dash ` | ` MyResource ` | ` /my-resources `
14
14
15
- The default resolver is ` api_platform.operation_path_resolver .underscore ` .
15
+ The default resolver is ` api_platform.path_segment_name_generator .underscore ` .
16
16
To change it to the dash resolver, add the following lines to ` app/config/config.yml ` :
17
17
18
18
``` yaml
19
19
# app/config/config.yml
20
20
21
21
api_platform :
22
- default_operation_path_resolver : ' api_platform.operation_path_resolver .dash'
22
+ path_segment_name_generator : api_platform.path_segment_name_generator .dash
23
23
` ` `
24
24
25
25
## Create a Custom Operation Path Resolver
@@ -75,5 +75,5 @@ services:
75
75
# app/config/config.yml
76
76
77
77
api_platform:
78
- default_operation_path_resolver : 'AppBundle\P athResolver\N oSeparatorsOperationPathResolver'
78
+ path_segment_name_generator : 'AppBundle\P athResolver\N oSeparatorsOperationPathResolver'
79
79
` ` `
You can’t perform that action at this time.
0 commit comments