Skip to content

Commit 47fb4a2

Browse files
authored
Merge pull request #3 from greensight/dev-2
Fix config name.
2 parents ec60d26 + 667aa7e commit 47fb4a2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ElasticQueryServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function boot()
2424

2525
if ($this->app->runningInConsole()) {
2626
$this->publishes([
27-
__DIR__.'/../config/config.php' => config_path('ensi-elastic-query.php'),
27+
__DIR__.'/../config/config.php' => config_path('laravel-elastic-query.php'),
2828
], 'config');
2929

3030
// Publishing the views.
@@ -53,15 +53,15 @@ public function boot()
5353
public function register()
5454
{
5555
// Automatically apply the package configuration
56-
$this->mergeConfigFrom(__DIR__.'/../config/config.php', 'ensi-elastic-query');
56+
$this->mergeConfigFrom(__DIR__.'/../config/config.php', 'laravel-elastic-query');
5757

5858
$this->app->singleton(ElasticClient::class, fn (Application $app) => $this->createClient($app));
5959
}
6060

6161
private function createClient(Application $app): ElasticClient
6262
{
6363
$naturalClient = (new ClientBuilder())
64-
->setHosts($app['config']['ensi-elastic-query.connection.hosts'])
64+
->setHosts($app['config']['laravel-elastic-query.connection.hosts'])
6565
->build();
6666

6767
return new ElasticClient($naturalClient);

tests/Seeds/SeedRunner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static function getInstance(): self
3939
private static function createInstance(): self
4040
{
4141
$client = ClientBuilder::create()
42-
->setHosts(config('ensi-elastic-query.connection.hosts'))
42+
->setHosts(config('laravel-elastic-query.connection.hosts'))
4343
->build();
4444

4545
return new self($client);

0 commit comments

Comments
 (0)