Skip to content

Commit 235dde1

Browse files
committed
Use ->make instead of array access
1 parent 01712f3 commit 235dde1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/OpenSearchScoutServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function register(): void
3333
$this->app->bind(SearchRequestFactoryInterface::class, SearchRequestFactory::class);
3434

3535
$this->app->bind(DocumentFactoryInterface::class, function (Application $app) {
36-
return new DocumentFactory($app['config']->get('scout.soft_delete', false));
36+
return new DocumentFactory($app->make('config')->get('scout.soft_delete', false));
3737
});
3838

3939
$this->app->singleton(DocumentManagerInterface::class, function (Application $app) {
@@ -51,7 +51,7 @@ public function register(): void
5151
$app->make(DocumentManagerInterface::class),
5252
$app->make(DocumentFactoryInterface::class),
5353
$app->make(SearchRequestFactoryInterface::class),
54-
$app['config']->get('opensearch-scout.refresh_documents', false),
54+
$app->make('config')->get('opensearch-scout.refresh_documents', false),
5555
);
5656
});
5757
}

0 commit comments

Comments
 (0)