[Doc] Updated array tutorial
This commit is contained in:
parent
a6f8ccbfd2
commit
d3a8965500
|
@ -15,12 +15,12 @@ Controller
|
||||||
class DemoController extends ContainerAware
|
class DemoController extends ContainerAware
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @Soap\Method("isString")
|
* @Soap\Method("hello")
|
||||||
* @Soap\Param("strings", phpType = "string[]")
|
* @Soap\Param("names", phpType = "string[]")
|
||||||
* @Soap\Result(phpType = "boolean")
|
* @Soap\Result(phpType = "string")
|
||||||
*/
|
*/
|
||||||
public function helloAction(array $strings)
|
public function helloAction(array $names)
|
||||||
{
|
{
|
||||||
return new SoapResponse(true);
|
return new SoapResponse("Hello ".implode(', ', $names));
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue