@@ -115,8 +115,6 @@ |
||
115 | 115 | * Prepares a request. |
116 | 116 | * |
117 | 117 | * @param string $actionPath The path of action. |
118 | - * @param string $method The http method. |
|
119 | - * @param array $data The parameters of action. |
|
120 | 118 | * @param array $server The server parameters. |
121 | 119 | * |
122 | 120 | * @return Request |
@@ -11,16 +11,16 @@ |
||
11 | 11 | |
12 | 12 | namespace AMF\WebServicesClientBundle\Rest; |
13 | 13 | |
14 | -use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
|
15 | -use AMF\WebServicesClientBundle\Rest\Exception\RestException; |
|
16 | -use AMF\WebServicesClientBundle\Rest\Event\GetResponseEvent; |
|
17 | 14 | use AMF\WebServicesClientBundle\Rest\Component\Request; |
18 | 15 | use AMF\WebServicesClientBundle\Rest\Component\Url; |
19 | -use AMF\WebServicesClientBundle\Rest\Security\Wsse; |
|
20 | -use AMF\WebServicesClientBundle\Rest\Encoder\EncoderProviderInterface; |
|
16 | +use AMF\WebServicesClientBundle\Rest\Decoder\DecoderInterface; |
|
21 | 17 | use AMF\WebServicesClientBundle\Rest\Decoder\DecoderProviderInterface; |
22 | 18 | use AMF\WebServicesClientBundle\Rest\Encoder\EncoderInterface; |
23 | -use AMF\WebServicesClientBundle\Rest\Decoder\DecoderInterface; |
|
19 | +use AMF\WebServicesClientBundle\Rest\Encoder\EncoderProviderInterface; |
|
20 | +use AMF\WebServicesClientBundle\Rest\Event\GetResponseEvent; |
|
21 | +use AMF\WebServicesClientBundle\Rest\Exception\RestException; |
|
22 | +use AMF\WebServicesClientBundle\Rest\Security\Wsse; |
|
23 | +use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * The endpoint of rest webservice. |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | /** |
44 | 44 | * Getter for content. |
45 | 45 | * |
46 | - * @return mixed |
|
46 | + * @return string|null |
|
47 | 47 | */ |
48 | 48 | public function getContent() |
49 | 49 | { |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | * @param mixed $content The content of response. |
157 | 157 | * @param integer $statusCode The code status of response. |
158 | 158 | * |
159 | - * @return \static |
|
159 | + * @return Response |
|
160 | 160 | */ |
161 | 161 | public static function create($content, $statusCode) |
162 | 162 | { |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | && strlen($this->password) > 0) { |
54 | 54 | $xsdNamespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"; |
55 | 55 | |
56 | - $usernameSoapVar = new \SoapVar( |
|
56 | + $usernameSoapVar = new \SoapVar( |
|
57 | 57 | $this->username, |
58 | 58 | XSD_STRING, |
59 | 59 | null, |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | null, |
62 | 62 | $xsdNamespace |
63 | 63 | ); |
64 | - $passwordSoapVar = new \SoapVar( |
|
64 | + $passwordSoapVar = new \SoapVar( |
|
65 | 65 | $this->password, |
66 | 66 | XSD_STRING, |
67 | 67 | null, |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | 'UsernameToken', |
88 | 88 | $xsdNamespace |
89 | 89 | ); |
90 | - $secHeaderValue = new \SoapVar( |
|
90 | + $secHeaderValue = new \SoapVar( |
|
91 | 91 | $wsseTokenSoapVar, |
92 | 92 | SOAP_ENC_OBJECT, |
93 | 93 | null, |
@@ -11,9 +11,9 @@ |
||
11 | 11 | |
12 | 12 | namespace AMF\WebServicesClientBundle\DependencyInjection\Compiler; |
13 | 13 | |
14 | +use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; |
|
14 | 15 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
15 | 16 | use Symfony\Component\DependencyInjection\DefinitionDecorator; |
16 | -use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; |
|
17 | 17 | use Symfony\Component\DependencyInjection\Reference; |
18 | 18 | |
19 | 19 | /** |
@@ -11,8 +11,8 @@ |
||
11 | 11 | |
12 | 12 | namespace AMF\WebServicesClientBundle\Rest\EventListener; |
13 | 13 | |
14 | -use AMF\WebServicesClientBundle\Rest\Event\GetResponseEvent; |
|
15 | 14 | use AMF\WebServicesClientBundle\Rest\Component\Response; |
15 | +use AMF\WebServicesClientBundle\Rest\Event\GetResponseEvent; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * Listener for http rest requests. |