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