server/src/app/Providers/GeonamesServiceProvider.php
author ymh <ymh.work@gmail.com>
Fri, 21 Oct 2016 16:07:19 +0200
changeset 383 82a3db4b1d39
parent 304 20071981ba2a
permissions -rw-r--r--
Correct application build + migration

<?php

namespace CorpusParole\Providers;

use Illuminate\Support\ServiceProvider;

use Config;

use CorpusParole\Services\GeonamesResolver;


class GeonamesServiceProvider extends ServiceProvider
{

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