[Doc] Updated array tutorial

This commit is contained in:
Francis Besset 2011-08-14 18:13:12 +02:00
parent a6f8ccbfd2
commit d3a8965500
1 changed files with 5 additions and 5 deletions

View File

@ -15,12 +15,12 @@ Controller
class DemoController extends ContainerAware
{
/**
* @Soap\Method("isString")
* @Soap\Param("strings", phpType = "string[]")
* @Soap\Result(phpType = "boolean")
* @Soap\Method("hello")
* @Soap\Param("names", phpType = "string[]")
* @Soap\Result(phpType = "string")
*/
public function helloAction(array $strings)
public function helloAction(array $names)
{
return new SoapResponse(true);
return new SoapResponse("Hello ".implode(', ', $names));
}
}