Skip to content

Commit 622d3b5

Browse files
author
Robert He
committed
MAGETWO-66882: Allowing Web API listing to be public - 2.2
- SOAP web service methods are listed in the public WSDL
1 parent af00449 commit 622d3b5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app/code/Magento/Webapi/Model/AbstractSchemaGenerator.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,7 @@ public function __construct(
8181
*/
8282
public function getListOfServices()
8383
{
84-
$listOfAllowedServices = [];
85-
foreach ($this->serviceMetadata->getServicesConfig() as $serviceName => $service) {
86-
$listOfAllowedServices[] = $serviceName;
87-
}
88-
return $listOfAllowedServices;
84+
return array_keys($this->serviceMetadata->getServicesConfig());
8985
}
9086

9187
/**

0 commit comments

Comments
 (0)