Skip to content

Commit

Permalink
Fixes #5, fixes #25
Browse files Browse the repository at this point in the history
  • Loading branch information
Radiergummi committed Mar 29, 2021
1 parent 1bfb558 commit 1b5fcfc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ElasticsearchServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Matchory\Elasticsearch;

use Elasticsearch\ClientBuilder as ElasticBuilder;
Expand All @@ -21,7 +23,6 @@
use Matchory\Elasticsearch\Interfaces\ClientFactoryInterface;
use Matchory\Elasticsearch\Interfaces\ConnectionInterface;
use Matchory\Elasticsearch\Interfaces\ConnectionResolverInterface;
use Psr\Log\LoggerInterface;
use Psr\SimpleCache\CacheInterface;

use function class_exists;
Expand Down Expand Up @@ -197,7 +198,7 @@ function (Application $app) {
: null;

$logger = Config::get('es.logger') && $app->bound('es.logger')
? $app->make(LoggerInterface::class)
? $app->make('es.logger')
: null;

return new ConnectionManager(
Expand Down

0 comments on commit 1b5fcfc

Please sign in to comment.