File tree 4 files changed +5
-1
lines changed
4 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -404,6 +404,7 @@ private function buildOperations(\SimpleXMLElement $resource, array $root): ?arr
404
404
'queryParameterValidate ' => $ this ->phpize ($ operation , 'queryParameterValidate ' , 'bool ' ),
405
405
'priority ' => $ this ->phpize ($ operation , 'priority ' , 'integer ' ),
406
406
'name ' => $ this ->phpize ($ operation , 'name ' , 'string ' ),
407
+ 'routeName ' => $ this ->phpize ($ operation , 'routeName ' , 'string ' ),
407
408
]);
408
409
}
409
410
Original file line number Diff line number Diff line change 48
48
<xsd : attribute type =" xsd:positiveInteger" name =" priority" />
49
49
<xsd : attribute type =" xsd:string" name =" name" />
50
50
<xsd : attribute type =" xsd:string" name =" itemUriTemplate" />
51
+ <xsd : attribute type =" xsd:string" name =" routeName" />
51
52
</xsd : complexType >
52
53
53
54
<xsd : complexType name =" graphQlOperations" >
Original file line number Diff line number Diff line change @@ -273,6 +273,7 @@ public function testValidXML(): void
273
273
'itemUriTemplate ' => null ,
274
274
'stateOptions ' => null ,
275
275
'links ' => null ,
276
+ 'routeName ' => 'custom_route_name ' ,
276
277
],
277
278
[
278
279
'name ' => null ,
@@ -373,6 +374,7 @@ public function testValidXML(): void
373
374
'provider ' => null ,
374
375
'stateOptions ' => null ,
375
376
'links ' => null ,
377
+ 'routeName ' => null ,
376
378
],
377
379
],
378
380
'graphQlOperations ' => null ,
Original file line number Diff line number Diff line change 95
95
</exceptionToStatus >
96
96
97
97
<operations >
98
- <operation class =" ApiPlatform\Metadata\GetCollection" name =" custom_operation_name" />
98
+ <operation class =" ApiPlatform\Metadata\GetCollection" name =" custom_operation_name" routeName = " custom_route_name " />
99
99
<operation class =" ApiPlatform\Metadata\Get" uriTemplate =" /users/{userId}/comments/{id}{._format}" >
100
100
<uriVariables >
101
101
<uriVariable parameterName =" userId" fromClass =" ApiPlatform\Metadata\Tests\Fixtures\ApiResource\User" fromProperty =" author" />
You can’t perform that action at this time.
0 commit comments