Skip to content
This repository has been archived by the owner on Apr 7, 2019. It is now read-only.

Commit

Permalink
Use GuzzleFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Dec 10, 2017
1 parent 208db21 commit 1c67ed8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EmojiServiceProvider.php
Expand Up @@ -13,7 +13,7 @@

namespace AltThree\Emoji;

use GuzzleHttp\Client;
use GrahamCampbell\GuzzleFactory\GuzzleFactory;
use Illuminate\Contracts\Container\Container;
use Illuminate\Foundation\Application as LaravelApplication;
use Illuminate\Support\ServiceProvider;
Expand Down Expand Up @@ -79,7 +79,7 @@ protected function registerParser()
$headers['Authorization'] = "token {$token}";
}

$response = (new Client())->get('https://api.github.com/emojis', ['headers' => $headers]);
$response = GuzzleFactory::make()->get('https://api.github.com/emojis', ['headers' => $headers]);

return (array) json_decode((string) $response->getBody(), true);
});
Expand Down

0 comments on commit 1c67ed8

Please sign in to comment.