Skip to content

Commit 147c674

Browse files
committed
Resolve OpenSearch manager
1 parent 0a273b7 commit 147c674

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/OpenSearchScoutServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use DirectoryTree\OpenSearchAdapter\Documents\DocumentManager;
66
use DirectoryTree\OpenSearchAdapter\Indices\IndexManager;
7-
use DirectoryTree\OpenSearchClient\ClientBuilderInterface;
7+
use DirectoryTree\OpenSearchClient\OpenSearchManager;
88
use DirectoryTree\OpenSearchScoutDriver\Factories\DocumentFactory;
99
use DirectoryTree\OpenSearchScoutDriver\Factories\DocumentFactoryInterface;
1010
use DirectoryTree\OpenSearchScoutDriver\Factories\ModelFactory;
@@ -31,11 +31,11 @@ public function register(): void
3131
$this->app->bindIf(SearchRequestFactoryInterface::class, SearchRequestFactory::class);
3232

3333
$this->app->singletonIf(DocumentManager::class, function ($app) {
34-
return new DocumentManager($app->make(ClientBuilderInterface::class)->default());
34+
return new DocumentManager($app->make(OpenSearchManager::class)->default());
3535
});
3636

3737
$this->app->singletonIf(IndexManager::class, function ($app) {
38-
return new IndexManager($app->make(ClientBuilderInterface::class)->default());
38+
return new IndexManager($app->make(OpenSearchManager::class)->default());
3939
});
4040
}
4141

0 commit comments

Comments
 (0)