Added RST documentation
This commit is contained in:
26
Resources/doc/tutorial/array.rst
Normal file
26
Resources/doc/tutorial/array.rst
Normal file
@ -0,0 +1,26 @@
|
||||
Array
|
||||
=====
|
||||
|
||||
Controller
|
||||
----------
|
||||
|
||||
.. code-block:: php
|
||||
|
||||
namespace My\App\Controller;
|
||||
|
||||
use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap;
|
||||
use BeSimple\SoapBundle\Soap\SoapResponse;
|
||||
use Symfony\Component\DependencyInjection\ContainerAware;
|
||||
|
||||
class DemoController extends ContainerAware
|
||||
{
|
||||
/**
|
||||
* @Soap\Method("isString")
|
||||
* @Soap\Param("strings", phpType = "string[]")
|
||||
* @Soap\Result(phpType = "boolean")
|
||||
*/
|
||||
public function helloAction(array $strings)
|
||||
{
|
||||
return new SoapResponse(true);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user