Ipalaus\Geonames\GeonamesServiceProvider::registerRepository PHP Method

registerRepository() protected method

Register the repository implementation.
protected registerRepository ( ) : void
return void
    protected function registerRepository()
    {
        $app = $this->app;
        $app['geonames.repository'] = $app->share(function ($app) {
            $connection = $app['db']->connection();
            return new DatabaseRepository($connection);
        });
        $app->bind('Ipalaus\\Geonames\\RepositoryInterface', function ($app) {
            return $app['geonames.repository'];
        });
    }