Update to use widop/http-adapter version 1.1+

This change reflects the change in widop/http-adapter which happened in version 1.1.
Before this version, $response was a string (the HTTP response). Now the response is wrapped in a class,  and the old content is extracted with method getBody().
I think it is all done now. It took me some time to figure out why the
built failed and blamed 2 issues on me. Actually, it may have exposed the
following issue: there is the following code
in Ivory\GoogleMap\Services\Utils\XmlParser.php:


  /**
     * Normalizes xml.
     *
     * @param array $xml The xml.
     *
     * @return array|\stdClass The normalized xml.
     */
    protected function normalize(array $xml)
    {
        if (is_string(key($xml))) {
            return (object) $xml;
        }

        return $xml;
    }

On the other hand, in Ivory\GoogleMap\Services\Directions\Directions.php
the code

$directionsResponse =
$this->buildDirectionsResponse($this->parse($response->getBody()));

passes the result of $this->parse, which returns a result of normalize, to
the function buildDirectionsResponse, which is typiehinted to take only an
object. Thus the complaint.
I will not be addressing this issue.

Best regards,
--Marek Rychlik


On Tue, Aug 5, 2014 at 7:25 AM, Eric GELOEN <notifications@github.com>
wrote:

> In composer.json:
>
> > @@ -15,7 +15,7 @@
> >      },
> >      "require-dev": {
> >          "phpunit/phpunit": "~4.0",
> > -        "widop/http-adapter": "~1.0,<1.1",
> > +        "widop/http-adapter": "~1.1,>=1.1",
>
> Sorry but can you just add ~1.1? Basically, it will allow to install 1.x
> starting from the 1.1 version and will forbid to install the 1.0.x
> versions. And if you can squash all your commits in a single one too
> otherwise I will need to do it by myself. Thx!
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/egeloen/ivory-google-map/pull/84/files#r15815206>.
>