Simplified exposure functions in README

This commit is contained in:
Francis Besset 2011-07-21 20:53:49 +02:00
parent 3c5ef798c1
commit 695b7fb663
1 changed files with 4 additions and 6 deletions

View File

@ -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)
{ {