BeSimpleSoap/Resources/doc/soapserver/tutorial/array.rst
Francis Besset b5fbb9192c Updated doc
2013-02-20 15:58:12 +01:00

26 lines
565 B
ReStructuredText

Array
=====
Controller
----------
.. code-block:: php
namespace Acme\DemoBundle\Controller;
use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap;
use Symfony\Component\DependencyInjection\ContainerAware;
class DemoController extends ContainerAware
{
/**
* @Soap\Method("hello")
* @Soap\Param("names", phpType = "string[]")
* @Soap\Result(phpType = "string")
*/
public function helloAction(array $names)
{
return "Hello ".implode(', ', $names);
}
}