| Conditions | 4 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 46 | protected function setupConfig() |
||
| 47 | { |
||
| 48 | $source = realpath(__DIR__.'/../config/carbonated.php'); |
||
| 49 | if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) { |
||
| 50 | $this->publishes([$source => config_path('carbonated.php')]); |
||
| 51 | } elseif ($this->app instanceof LumenApplication) { |
||
| 52 | $this->app->configure('carbonated'); |
||
| 53 | } |
||
| 54 | $this->mergeConfigFrom($source, 'carbonated'); |
||
| 55 | } |
||
| 56 | } |
||
| 57 |