Skip to content

Commit 07f06da

Browse files
author
Ben Speakman
committed
Resolve Guzzle from IOC
1 parent 9a6bbf8 commit 07f06da

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Cyberduck/LaravelWpApi/LaravelWpApiServiceProvider.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php namespace Cyberduck\LaravelWpApi;
22

33
use Illuminate\Support\ServiceProvider;
4-
use GuzzleHttp\Client;
54

65
class LaravelWpApiServiceProvider extends ServiceProvider {
76

@@ -35,7 +34,7 @@ public function register()
3534

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

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

0 commit comments

Comments
 (0)