Simplified exposure functions in README
This commit is contained in:
parent
3c5ef798c1
commit
695b7fb663
|
@ -67,17 +67,15 @@ QuickStart
|
||||||
* Annotate your controller methods
|
* Annotate your controller methods
|
||||||
|
|
||||||
// src/Acme/DemoBundle/Controller/DemoController.php
|
// src/Acme/DemoBundle/Controller/DemoController.php
|
||||||
use BeSimple\SoapBundle\ServiceDefinition\Annotation\Method;
|
use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap;
|
||||||
use BeSimple\SoapBundle\ServiceDefinition\Annotation\Param;
|
|
||||||
use BeSimple\SoapBundle\ServiceDefinition\Annotation\Result;
|
|
||||||
use BeSimple\SoapBundle\Soap\SoapResponse;
|
use BeSimple\SoapBundle\Soap\SoapResponse;
|
||||||
|
|
||||||
class DemoController extends Controller
|
class DemoController extends Controller
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @Method("Hello")
|
* @Soap\Method("Hello")
|
||||||
* @Param("name", phpType = "string")
|
* @Soap\Param("name", phpType = "string")
|
||||||
* @Result(phpType = "string")
|
* @Soap\Result(phpType = "string")
|
||||||
*/
|
*/
|
||||||
public function helloAction($name)
|
public function helloAction($name)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue