Skip to content

Commit

Permalink
Resolve Guzzle from IOC
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Speakman committed Jun 10, 2015
1 parent 9a6bbf8 commit 07f06da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Cyberduck/LaravelWpApi/LaravelWpApiServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php namespace Cyberduck\LaravelWpApi;

use Illuminate\Support\ServiceProvider;
use GuzzleHttp\Client;

class LaravelWpApiServiceProvider extends ServiceProvider {

Expand Down Expand Up @@ -35,7 +34,7 @@ public function register()

$endpoint = $this->app['config']->get('wp-api.endpoint');
$auth = $this->app['config']->get('wp-api.auth');
$client = new Client();
$client = $this->app->make('GuzzleHttp\Client');

return new WpApi($endpoint, $client, $auth);

Expand Down

0 comments on commit 07f06da

Please sign in to comment.