server/src/app/Providers/ViafServiceProvider.php
author ymh <ymh.work@gmail.com>
Sat, 10 Jun 2017 17:57:34 +0200
changeset 533 a557802f2b12
parent 139 8d688175513a
permissions -rw-r--r--
Make guzzle client use the proxy configuration when injected by the ioc

<?php

namespace CorpusParole\Providers;

use Config;

use Illuminate\Support\ServiceProvider;

use CorpusParole\Services\ViafResolver;

class ViafServiceProvider extends ServiceProvider
{
    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
        $this->app->bind('CorpusParole\Services\ViafResolverInterface', function($app) {
            return new ViafResolver($app['Guzzle']);
        });
    }
}