Ipalaus\Geonames\GeonamesServiceProvider::registerRepository PHP 메소드

registerRepository() 보호된 메소드

Register the repository implementation.
protected registerRepository ( ) : void
리턴 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'];
        });
    }