server/src/app/Providers/GuzzleServiceProvider.php
changeset 139 8d688175513a
parent 23 037687868bc4
child 533 a557802f2b12
equal deleted inserted replaced
138:3079cbf80006 139:8d688175513a
    15      *
    15      *
    16      * @return GuzzleClient
    16      * @return GuzzleClient
    17      */
    17      */
    18     public function register()
    18     public function register()
    19     {
    19     {
    20         $this->app->bind('guzzle', function() {
    20         $this->app->bind('Guzzle', function() {
    21             $config = isset($this->app['config']['guzzle']) ? $this->app['config']['guzzle'] : [];
    21             $config = isset($this->app['config']['guzzle']) ? $this->app['config']['guzzle'] : [];
    22             return new Client($config);
    22             return new Client($config);
    23         });
    23         });
    24     }
    24     }
    25 }
    25 }