| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | protected function setupConfig(): void |
||
| 30 | { |
||
| 31 | $source = (string)realpath(__DIR__ . '/../config/config.php'); |
||
| 32 | |||
| 33 | if ($this->app instanceof LaravelApplication) { |
||
| 34 | $this->publishes([$source => config_path('druid.php')]); |
||
| 35 | } elseif ($this->app instanceof LumenApplication) { |
||
| 36 | $this->app->configure('druid'); |
||
| 37 | } |
||
| 38 | |||
| 39 | $this->mergeConfigFrom($source, 'druid'); |
||
| 40 | } |
||
| 60 | } |