We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b5da39 commit f95a14fCopy full SHA for f95a14f
src/Webservice/Webservice.php
@@ -168,7 +168,8 @@ public function describe($endpoint)
168
$shortName = App::shortName(get_class($this), 'Webservice', 'Webservice');
169
list($plugin, $name) = pluginSplit($shortName);
170
171
- $schemaShortName = implode('.', array_filter([$plugin, Inflector::classify($endpoint)]));
+ $endpoint = Inflector::classify(str_replace('-', '_', $endpoint));
172
+ $schemaShortName = implode('.', array_filter([$plugin, $endpoint]));
173
$schemaClassName = App::className($schemaShortName, 'Model/Endpoint/Schema', 'Schema');
174
if ($schemaClassName) {
175
return new $schemaClassName($endpoint);
0 commit comments