We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad4cf35 commit 80101e9Copy full SHA for 80101e9
1 file changed
app/helpers/Swagger/AnnotationData.php
@@ -85,6 +85,9 @@ private function constructOperationId()
85
{
86
// remove the namespace prefix of the class and make the first letter lowercase
87
$className = lcfirst(Utils::shortenClass($this->className));
88
+ // remove the 'Presenter' suffix
89
+ $className = substr($className, 0, strlen($className) - strlen("Presenter"));
90
+
91
// remove the 'action' prefix
92
$endpoint = substr($this->methodName, strlen("action"));
93
return $className . $endpoint;
0 commit comments