author | nowmad@23.1.168.192.in-addr.arpa |
Fri, 22 Jan 2016 13:15:47 +0100 | |
changeset 98 | 2e6bfce6f99c |
parent 23 | 037687868bc4 |
child 139 | 8d688175513a |
permissions | -rw-r--r-- |
<?php namespace CorpusParole\Providers; use Illuminate\Support\ServiceProvider; use GuzzleHttp\Client; /** * guzzle Service Provider, inspired by https://github.com/urakozz/laravel-guzzle */ class GuzzleServiceProvider extends ServiceProvider { /** * Register the Guzzle provider * * @return GuzzleClient */ public function register() { $this->app->bind('guzzle', function() { $config = isset($this->app['config']['guzzle']) ? $this->app['config']['guzzle'] : []; return new Client($config); }); } }