File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55use DirectoryTree \OpenSearchAdapter \Documents \DocumentManager ;
66use DirectoryTree \OpenSearchAdapter \Indices \IndexManager ;
7- use DirectoryTree \OpenSearchClient \ClientBuilderInterface ;
7+ use DirectoryTree \OpenSearchClient \OpenSearchManager ;
88use DirectoryTree \OpenSearchScoutDriver \Factories \DocumentFactory ;
99use DirectoryTree \OpenSearchScoutDriver \Factories \DocumentFactoryInterface ;
1010use 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
You can’t perform that action at this time.
0 commit comments