diff --git a/composer.json b/composer.json index 63f21ae..0bb77a8 100755 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ ], "require": { "php": ">=5.5.0", - "illuminate/support": "~5.0", + "illuminate/support": "~5.2", "guzzlehttp/guzzle": "~6.0" }, "require-dev": { diff --git a/src/Threesquared/LaravelWpApi/Facades/WpApi.php b/src/Threesquared/LaravelWpApi/Facades/WpApi.php index 0b2a97c..1bab8df 100644 --- a/src/Threesquared/LaravelWpApi/Facades/WpApi.php +++ b/src/Threesquared/LaravelWpApi/Facades/WpApi.php @@ -1,9 +1,10 @@ app->bindShared('wp-api', function ($app) { + $this->app->singleton(WpApi::class, function ($app) { $endpoint = $this->app['config']->get('wp-api.endpoint'); $auth = $this->app['config']->get('wp-api.auth'); @@ -40,10 +40,6 @@ class LaravelWpApiServiceProvider extends ServiceProvider return new WpApi($endpoint, $client, $auth); }); - - $this->app->bind('Threesquared\LaravelWpApi\WpApi', function ($app) { - return $app['wp-api']; - }); } /**