Skip to content

Commit 80101e9

Browse files
committed
removed 'Presenter' suffix from operation ids
1 parent ad4cf35 commit 80101e9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/helpers/Swagger/AnnotationData.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ private function constructOperationId()
8585
{
8686
// remove the namespace prefix of the class and make the first letter lowercase
8787
$className = lcfirst(Utils::shortenClass($this->className));
88+
// remove the 'Presenter' suffix
89+
$className = substr($className, 0, strlen($className) - strlen("Presenter"));
90+
8891
// remove the 'action' prefix
8992
$endpoint = substr($this->methodName, strlen("action"));
9093
return $className . $endpoint;

0 commit comments

Comments
 (0)