12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <?php
- namespace Qcloud\Cos;
- use GuzzleHttp\Command\CommandInterface;
- use GuzzleHttp\Command\Guzzle\SchemaValidator;
- use GuzzleHttp\Command\Guzzle\DescriptionInterface;
- use GuzzleHttp\Command\Guzzle\Serializer as DefaultSerializer;
- use Psr\Http\Message\RequestInterface;
- class Serializer extends DefaultSerializer
- {
-
- public function __construct(
- DescriptionInterface $description,
- array $requestLocations = []
- ) {
-
- $requestLocations['body'] = new Request\BodyLocation;
- parent::__construct($description, $requestLocations);
- }
-
- protected function prepareRequest(
- CommandInterface $command,
- RequestInterface $request
- ) {
-
- return parent::prepareRequest($command, $request);
- }
- }
|