Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | final class ElasticSearchServiceProvider extends ServiceProvider |
||
12 | { |
||
13 | /** |
||
14 | * {@inheritdoc} |
||
15 | */ |
||
16 | 40 | public function register(): void |
|
17 | { |
||
18 | $this->app->bind(Client::class, function () { |
||
19 | 29 | return ClientBuilder::create()->setHosts([config('elasticsearch.host')])->build(); |
|
20 | 40 | }); |
|
21 | 40 | } |
|
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | 40 | public function boot(): void |
|
31 | 40 | } |
|
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | 1 | public function provides(): array |
|
41 |