Skip to content

Commit

Permalink
Use single name for subpath
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Jul 27, 2020
1 parent ec6d262 commit 3d7b144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Operation/Factory/SubresourceOperationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private function computeSubresourceOperations(string $resourceClass, array &$tre
$operation['path'] = $subresourceOperation['path'] ?? sprintf(
'/%s%s/{id}/%s%s',
$prefix,
$this->pathSegmentNameGenerator->getSegmentName($rootShortname, true),
$this->pathSegmentNameGenerator->getSegmentName($rootShortname),
$this->pathSegmentNameGenerator->getSegmentName($operation['property'], $operation['collection']),
self::FORMAT_SUFFIX
);
Expand Down

0 comments on commit 3d7b144

Please sign in to comment.