| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 47 | protected function registerDruidClient(): void |
||
| 48 | { |
||
| 49 | $this->setupConfig(); |
||
| 50 | |||
| 51 | $this->app->singleton(DruidClient::class, function () { |
||
| 52 | $client = new DruidClient($this->app['config']['druid']); // @phpstan-ignore-line |
||
| 53 | $client->setLogger($this->app['log']); // @phpstan-ignore-line |
||
| 54 | |||
| 55 | return $client; |
||
| 56 | }); |
||
| 57 | |||
| 58 | $this->app->bind('druid', DruidClient::class); |
||
| 59 | } |
||
| 60 | } |